SANDBOX/PlayerSpawnObject

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

Contents

Description

Called to ask whether player is allowed to spawn a given model. This includes props, effects and ragdolls and is called before the respective PlayerSpawn* hook.

Arguments

Player ply

The player in question

Arguments

string model

Model path

Arguments

number skin

Skin number

Returns

boolean

Return false to disallow the player to spawn the given model.
Personal tools
Navigation