SET PLAYER MAY ONLY ENTER THIS VEHICLE

From GTAMods Wiki
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.