Citizen.CreateThread(function ()
car = GetVehiclePedIsIn(GetPlayerPed(-1), false)
if not car then
TriggerEvent("chatMessage", "ERROR", {255, 0, 0}, "You have to be sitting in a vehicle.")
return
elseif car then
Citizen.InvokeNative(0xB736A491E64A32CF,Citizen.PointerValueIntInitialized(car))
end
end)
Ive tried this in my server and it literally does nothing, can someone help me get this vehicle to delete when sitting in it.
@kanersps It has a way to run, i dont want to post it all this is just the part that isnt working… it gives me an error (which is in the code and is supposed to happen) when im not in a vehicle but once i get in it does nothing…