Garry's Mod Wiki
Description
Structure used for properties.Add.
Members
For reference, here are the default properties and their Order values:
Property | Order |
---|---|
Bone Manipulate | 500 |
Bodygroups | 600 |
Skin | 601 |
Keep Upright | 900 |
Ignite/Extinguish | 999 |
Remove | 1000 |
Gravity | 1001 |
Drive | 1100 |
Collision | 1500 |
Statue | 1501 |
NPC Biggify/Smallify | 1799, 1800 |
Motion Control (Kinect) | 2500 |
Edit Properties | 90001 |
Default: false
It's good practice to call GM:CanProperty in this hook via gamemode.Call or hook.Run.
When appropriate, within this function you can call self:MsgStart()
, write data with the net.Write*
functions, and finish with self:MsgEnd()
. This will activate the Receive
function on the server. In most cases, you will want to send the entity to the server, as it's not done by default.
Action
function (see above).
You can read data received from the client with the net.Read*
functions. It's good practice to check GM:CanProperty here via gamemode.Call or hook.Run.
MenuOpen
, but also called for toggle properties and has different arguments. This is called immediately after MenuOpen
, but nothing happens in between so you should only ever use one or the other.
This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.
Page content is automatically updated four times a day. Edits and history are not available.
Last Parsed: Loading...