Garry's Mod Wiki

SANDBOX:PlayerSpawnEffect

  boolean SANDBOX:PlayerSpawnEffect( Player ply, string model )

Description

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

Arguments

1 Player ply
The player that wants to spawn an effect
2 string model
The effect model that player wants to spawn

Returns

1 boolean
Return false to disallow spawning that effect