Best callback for vehicle information - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Best callback for vehicle information (
/showthread.php?tid=638311)
Best callback for vehicle information -
Amit1998 - 30.07.2017
Hi,
I want to display an info box to a player incase he's very close to a vehicle.
Which callback would you recommend using? I thought of using OnPlayerUpdate but I'd rather not handle it if avoidable.
So what I'm asking is, which callback is the best for this purpose?
Re: Best callback for vehicle information -
Amit1998 - 30.07.2017
Nevermind, I used a timer.
Re: Best callback for vehicle information -
Shinja - 30.07.2017
If you vehicle is in a stable area, you can create an area around it and use area callbacks, better than a repeating timer