SANDBOX:PlayerSpawnVehicle

From Garry's Mod
Jump to: navigation, search
 SANDBOX:PlayerSpawnVehicle( )

Contents

Description

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

Arguments

Player ply

The player that wants to spawn that vehicle

Arguments

string model

The vehicle model that player wants to spawn

Arguments

string name

Vehicle name

Arguments

table table

Table of that vehicle, containing info about it

Returns

boolean

Return false to disallow spawning that vehicle
Personal tools
Navigation