Gamemode.PlayerSpawnedVehicle
From GMod Wiki
Event Hook | |
Hook Name | PlayerSpawnedVehicle |
Syntax | GM:PlayerSpawnedVehicle( Player Entity, Vehicle Vehicle, ) |
Description | Called when a player has already spawned a vehicle. Use this to record the vehicle's propid. Useful for prop protection. |
Returns | Nil |
Lua State | |
BBCode | [b][url=wiki.garrysmod.com/?title=Gamemode.PlayerSpawnedVehicle]Gamemode.PlayerSpawnedVehicle [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Additional Notes
- This hook gets called just after the vehicle is spawned.