G.ClientCallGamemode
From GMod Wiki
Function | |
Syntax |
ClientCallGamemode( CRecipientFilter recipients, String function_name, String arguments ) Where is this used? |
Description: | |
Call a specific function on the client's gamemode | |
Returns: | nil |
Part of Library: | Global Functions |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=G.ClientCallGamemode]G.ClientCallGamemode [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Example
Additional Notes
- Arguments is the only parameter. If you wish to use multiple parameters, you'll need to parse them in this single string, and split it up on the client-side.
- Only calls functions in the GAMEMODE table so you have call functions declared as GAMEMODE:FUNC if you want to call FUNC for example.
- Unlike usermessages, this does not accept a player object or nil.