So, I’ve been working on a script with the native ClearAreaOfVehicles. It doesn’t seem to be doing anything however.
Here is the portion of code:
AddEventHandler('murtaza:clearArea', function()
Citizen.Trace('Event confirmed')
local x, y, z = table.unpack(GetEntityCoords(GetPlayerPed(-1), true))
Citizen.Trace('Before clear area')
ClearAreaOfVehicles(x, y, z, 50, false, false, false, false, false)
Citizen.Trace('Vehicles are cleared!')
end)
I’m getting all the Citizen.Trace’s showing up but the vehicles in my area are not going anywhere… I’d love some help. Also, what do parameters 4 to 8 do? The Native DB doesn’t say…