Gamemode.PlayerRequestClass

From GMod Wiki

Jump to: navigation, search
Event Hook
Hook NamePlayerRequestClass
SyntaxGM:PlayerRequestClass( Player ply, Number class, Boolean disablemessage )
DescriptionCalled when a player tries to change to a class. Use this instead of SetPlayerClass.
ReturnsNil
Lua StateNewerServer.png
BBCode[b][url=wiki.garrysmod.com/?title=Gamemode.PlayerRequestClass]Gamemode.PlayerRequestClass [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]


Examples

DescriptionN/A
Used onNewerMissing.png
Code
LuaIco3.pngThis page needs an example to demonstrate the item detailed on this page. See how to make one here.
See more articles that need examples here.
OutputN/A


See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox