Weapon/CallOnClient

From Garry's Mod
Jump to: navigation, search
 Weapon:CallOnClient( )

Description

Calls a SWEP function on client.

WARNING

This uses the usermessage library 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!

Arguments

string functionName

Name of function to call. If you want to call SWEP:MyFunc() on client, you type in "MyFunc"

Arguments

string arguments=""

Arguments for the function, separated by spaces.

NOTE

Only the second argument is passed as argument and must be a string

Personal tools
Navigation