[HELP] Clear Area of Vehicles

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…

normaly this native should work , i can’t tell you more about the bool p4 at p8 cause no one make ref on it. (so you can try put them one by one true and see what change)

for the native , are you trying to delete random vehicle or mission entity vehicle ?

I’m trying to delete all the vehicles in the area.

i need that …
but i can find it anywhere…

I know this thread is really old, but radius needs to be a FLOAT.
Should be: ClearAreaOfVehicles(x, y, z, 50.0, false, false, false, false, false)
Instead of: ClearAreaOfVehicles(x, y, z, 50, false, false, false, false, false)