ENTITY:CanProperty

From Garry's Mod
Jump to: navigation, search
 ENTITY:CanProperty( )

Contents

Description

Controls if a property can be used on this entity or not.

This hook will only work in Sandbox derived gamemodes that do not have SANDBOX:CanProperty overridden.

NOTE This hook is predicted. This means that in singleplayer, it will not be called in the Client realm.

Arguments

Player ply

Player, that tried to use the property

Arguments

string property

Class of the property that is tried to use, for example - bonemanipulate

Returns

boolean

Return false to disallow using that property, return true to allow.
Personal tools
Navigation