Gamemode.GetSWEPMenu
From GMod Wiki
Revision as of 23:39, 22 October 2009 by Crazy Quebecer (Talk | contribs)
Event Hook | |
Hook Name | GetSWEPMenu |
Syntax | GM:GetSWEPMenu( ) |
Description | When called upon by your gamemode, should return a datatable structure containing entries referring to SWEPs that have been loaded clientside. |
Returns | Table :datatable |
Lua State | |
BBCode | [b][url=wiki.garrysmod.com/?title=Gamemode.GetSWEPMenu]Gamemode.GetSWEPMenu [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Additional Notes
- Returning a blank datatable will show the SWEP spawn menu as empty, regardless of whether there are any SWEPs to spawn or not. However, SWEPs can be spawned in other ways.