-- Server Side --
addEventHandler("onPlayerCommand",root,
function ( theCmd )
if ( theCmd == "Money" ) then
outputChatBox(" You're Money : ("..getPlayerMoney( source )..") !!!",source,0,255,0,true);
elseif ( theCmd == "Ping" ) then
outputChatBox(" You're Ping : ("..getPlayerPing( source )..") !!!",source,255,255,0,true);
end
end
);
How does it work?
just type the command "Money" or the command "Ping" in the console and will work try it server sid (;