SET PLAYER MAY ONLY ENTER THIS VEHICLE

From GTAMods Wiki
Revision as of 19:44, 12 June 2011 by MulleDK19 (talk | contribs) (Added function description)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
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.