Garry's Mod Wiki


  boolean SANDBOX:PlayerSpawnVehicle( Player ply, string model, string name, table table )


Called to ask if player allowed to spawn a particular vehicle or not.


1 Player ply
The player that wants to spawn that vehicle
2 string model
The vehicle model that player wants to spawn
3 string name
Vehicle name
4 table table
Table of that vehicle, containing info about it See VehicleTable structure.


1 boolean
Return false to disallow spawning that vehicle