Weapon.CallOnClient
From GMod Wiki
| Function | |
| Syntax | Weapon:CallOnClient( String function on client, String any extra parameters ) |
| Description: | |
| Allows you to call a piece of code on the client | |
| Returns: | nil |
| In Object: | Weapon |
| Realm: |
|
| BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Weapon.CallOnClient]Weapon.CallOnClient [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Additional Notes
- USING THIS IMPROPERLY WILL CRASH GMOD
- This requires that the clientside function you are calling be in this format: SWEP:FunctionName()
- When you put the function name into CallOnClient's arguments, you just put "FunctionName", no () and no SWEP: or SELF: