SA-MP Forums Archive
How to lock car/vehicle in 0.3c ? - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: How to lock car/vehicle in 0.3c ? (/showthread.php?tid=219009)



How to lock car/vehicle in 0.3c ? - Matej_ - 31.01.2011

Does anyone knows how to lock a vehicle & unlock it in SAMP 0.3c ?


Re: How to lock car/vehicle in 0.3c ? - [03]Garsino - 31.01.2011

https://sampwiki.blast.hk/wiki/GetVehicleParamsEx
https://sampwiki.blast.hk/wiki/SetVehicleParamsEx


Re: How to lock car/vehicle in 0.3c ? - Jefff - 31.01.2011

https://sampwiki.blast.hk/wiki/SetVehicleParamsForPlayer :P


Re: How to lock car/vehicle in 0.3c ? - Matej_ - 31.01.2011

How do i unlock the vehicle that i just locked?


Re: How to lock car/vehicle in 0.3c ? - DVDK - 31.01.2011

Quote:
Originally Posted by Matej_
Посмотреть сообщение
How do i unlock the vehicle that i just locked?
Read:
Quote:
Originally Posted by Jefff
Посмотреть сообщение



Re: How to lock car/vehicle in 0.3c ? - Matej_ - 31.01.2011

Quote:
Originally Posted by DVDK
Посмотреть сообщение
Read:
Yeah, but how do i unlock it if i'm outside of car, that i am near it??


Re: How to lock car/vehicle in 0.3c ? - Kasis - 19.06.2011

Quote:
Originally Posted by Matej_
Посмотреть сообщение
Yeah, but how do i unlock it if i'm outside of car, that i am near it??
Good question. I would also like to know that.


Re: How to lock car/vehicle in 0.3c ? - Scenario - 19.06.2011

Quote:
Originally Posted by Matej_
Посмотреть сообщение
Yeah, but how do i unlock it if i'm outside of car, that i am near it??
Quote:
Originally Posted by kasis223
Посмотреть сообщение
Good question. I would also like to know that.
You could create a stock function to loop through all vehicles. Check which vehicle the player is closest to and return the physical ID- then proceed with setting the vehicle parameters.