Difference between revisions of "SET PLAYER MAY ONLY ENTER THIS VEHICLE"

From GTAMods Wiki
Jump to navigation Jump to search
(Added function description)
 
(No difference)

Latest revision as of 19:44, 12 June 2011

SET_PLAYER_MAY_ONLY_ENTER_THIS_VEHICLE
Number of parameters: 2
Parameter #TypeDescription
1.Player indexThe player
2.Vehicle idThe vehicle. Use 0 to allow all vehicles again
Return value:
TypeDescription
None

This function will limit the specified player to only be able to enter a specific vehicle. This changes the behaviour of the "Enter Vehicle" key to always enter the specified vehicle. Regardless of distance.