Gamemode.LoadNetworkConfigurations
From GMod Wiki
Event Hook | |
Hook Name | LoadNetworkConfigurations |
Syntax | GM:LoadNetworkConfigurations( ) |
Description | Load custom network configurations here by calling NARWHAL.AddValidNetworkType. |
Returns | Nil |
Lua State | |
BBCode | [b][url=wiki.garrysmod.com/?title=Gamemode.LoadNetworkConfigurations]Gamemode.LoadNetworkConfigurations [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Description | Add a new network configuration called "dog". |
---|---|
Used on | |
Code | function GM:LoadNetworkConfigurations() --todo end |
Output | N/A |
Additional Notes
- This function is blank by default, and called from an initialize hook.
- You need to do this in a shared state. Datatypes you register must be registered in the same order on client and server, otherwise they will be referenced improperly.