Garry's Mod Wiki

Revision Difference

Weapon:CallOnClient#517936

<function name="CallOnClient" parent="Weapon" type="classfunc"> <description> Calls a SWEP function on client. <warning>This uses the <page>usermessage</page> internally, because of that, the combined length of the arguments of this function may not exceed 254 bytes/characters or the function will cease to function!</warning> </description> <realm>Shared</realm> <args> <arg name="functionName" type="string">Name of function to call. If you want to call SWEP:MyFunc() on client, you type in &quot;MyFunc&quot;</arg>⤶ <arg name="arguments" type="string" default="">Arguments for the function, separated by spaces.&#xA;&lt;note&gt;Only the second argument is passed as argument and must be a string&lt;/note&gt;</arg>⤶ <arg name="functionName" type="string">Name of function to call. If you want to call SWEP:MyFunc() on client, you type in "MyFunc"</arg>⤶ <arg name="arguments" type="string" default="">Arguments for the function, separated by spaces.<note>Only the second argument is passed as argument and must be a string</note></arg>⤶ </args> </function>