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]