IsPedInAnyVehicle problem


Heyo :slight_smile:
I have a small problem here, with some lines i added into Vrp’s basic_phone.lua

What im trying, is to do, when the User is in a vehicle, it dosent use any Emote…
But when he is not in a vehicle, it use an Emote

I dont know if im blind or what, but i cant find why it gives me this error…
Im new at coding, so please respect if its not scripted by a pro xddd

Part of the Script:



I’m not 100% sure if this is correct or if it makes any difference but try: IsPedInAnyVehicle(ped)


Maybe your doing the code server-side? If so you can only use natives client-side.


He is already doing that in the script :wink:


Arhh:) @Scott_UK that can be the fould :stuck_out_tongue:
But if its a Server-Side Client, is there so no chance to get it to read and check if the player is in a Vehicle… :stuck_out_tongue:
Because if Natives is only client-side then it will be hard