General > Developers Corner

Returning Name of a Weapon

<< < (2/3) > >>

Decicus:
If the colors on the official GMod wiki are right, then Weapon:GetPrintName() is clientside. (Player:GetActiveWeapon() is shared though).
My GLua is rusty when it comes to serverside and clientside communication, but I assume you could use the Net Library or umsg (user message), since PlayerSay is serverside.
Read MrPresident's reply further down.

An Error Has Occurred!

array_keys(): Argument #1 ($array) must be of type array, null given

[0] Board index

Go to full version