• Cash command not working...
    3 replies, posted
Hello, I am making a gamemode called ModernRP and I made a command but it doesn't work. Can someone please tell me WHY? [lua] function chatCommand( ply, text, public ) if (string.sub(text, 1, 5) == "/cash") then ply:PrintMessage( "Your money is:" .. ply:GetNWInt( "Money" ) ) return(false) end end hook.Add( "PlayerSay", "chatCommand", chatCommand ); [/lua]
What doesn't work? Do you get any errors?
[lua]ply:PrintMessage(HUD_PRINTTALK, "Your money is:" .. ply:GetNWInt( "Money" ) ) [/lua]
It works now! Thanks Coffeee +Support
Sorry, you need to Log In to post a reply to this thread.