API for spawning peds dynamically within a polyzone
-- Create a ped
exports["mojito_pedzones"]:NewPed(`mp_m_freemode_01`, "Test", {
coords = vector3(11.0, 3.0, 70.0),
radius = 15.0,
heading = 0.0,
useZ = false,
debug = false
}, {
invincible = true,
canMove = false,
ignorePlayer = true
})
-- Destroy a ped
exports["mojito_pedzones"]:DestroyPed("Test")
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 Unported License.