Garry's Mod Wiki

SANDBOX:PlayerSpawnVehicle

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

Description

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

Arguments

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

Returns

1 boolean
Return false to disallow spawning that vehicle

Page Links


Special Pages


Wikis

?

Render Time: 37ms

DB GetPage 4
Generate Html 11
SaveChanges (1) 8
Render Body 0
Render Sidebar 11