Category:Lua hooks

From GMod Wiki

Jump to: navigation, search

These are all hooks, they can be added using Hook.Add.

Example:

 
function playerRespawn( player )
   playerName = player.GetName( player );
   Msg( "Player " .. playerName .. " has respawned." );
end
 
hook.Add( "PlayerSpawn", "playerRespawnTest", playerRespawn );
 

(previous 200) (next 200)

Pages in category "Lua hooks"

The following 200 pages are in this category, out of 328 total.

D

E

G

G cont.

G cont.

(previous 200) (next 200)
Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox