i have a mod that i want to put a check to make sure they are on foot and not in a vehicle in the script, is this possible if so how?
There is a native in the NativeDB located https://runtime.fivem.net/doc/reference.html
Check for “IsPedInAnyVehicle”.
so im trying to get it to spawn something but want to make sure the ped is on foot.
so would i do something like
IsPedInAnyVehicle then prevent
You can do if not IsPedInAnyVehicle, which will return true if the ped is not in a vehicle.
if not IsPedInAnyVehicle
thank you for your help