Gamemode.PlayerSpawnVehicle
From GMod Wiki
Event Hook | |
Hook Name | PlayerSpawnVehicle |
Syntax | GM:PlayerSpawnVehicle( Player player, String model, String vehicle name, Table vehicle table ) |
Description | Called when a player wants to spawn a vehicle, before it is spawned. |
Returns | Boolean |
Lua State | |
BBCode | [b][url=wiki.garrysmod.com/?title=Gamemode.PlayerSpawnVehicle]Gamemode.PlayerSpawnVehicle [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Additional Notes
- Return true to allow spawning the vehicle, false for not allowing it.
- This hook gets called just before the vehicle is spawned.