Posts: 536
Threads: 81
Joined: Mar 2017
Reputation:
0
Hello guys! Is there something like OnVehicleRespawn and IsVehicleInRangeOfPoint, because I want to get the vehicle pos, before the vehicle is respawned and check if vehicle was in garage, than cancel the respawn! Can I do it?
Edit: Actually I don't need IsVehicleInRangeOfPoint, I will use the virtual world!
Posts: 1,266
Threads: 6
Joined: Oct 2014
You can use OnVehicleSpawn callback for that purpose ->
https://sampwiki.blast.hk/wiki/OnVehicleSpawn
and also you can use GetVehicleDistanceFromPoint to check if vehicle is in range of point or no.
https://sampwiki.blast.hk/wiki/GetVehicleDistanceFromPoint [
an ex ]
@ rip oma : p
Posts: 536
Threads: 81
Joined: Mar 2017
Reputation:
0
04.10.2017, 17:32
(
Последний раз редактировалось Kraeror; 05.10.2017 в 16:10.
)
Guys why when I exit from the server, the vehicle from my garage dissapere and it is going to random coordinates?
EDIT: FIXED WITH jlalt's help! Thank you jlalt!!! You are nice scripter, you are helping a lot people!