View Single Post
Old 27/05/2020, 10:55 PM   #5
xRadical3
Gangsta
 
Join Date: May 2017
Location: Iran
Posts: 660
Reputation: 61
Lightbulb Re: trying to do IsPlayerOnVehicle

Quote:
Originally Posted by ChampDotChamp View Post
There is a SA:MP bug when you teleport to random location and players that are standing on your vehicle will teleport with you.
Maybe this method will help, I have no other idea.

1) Check if the player is in the vehicle.
2) If he is in a vehicle, save the model and coordinates then destroy the vehicle.
3) Create the vehicle after the player is teleported.
4) Put the player in the vehicle as driver.
That way, players are standing on vehicle won't teleport with driver.
xRadical3 is online now   Reply With Quote