addEventHandler ("onPlayerChat",getRootElement(),
function(message,type) -- Funkce
if (string.find(message,"!cash")) and not (string.find(message," !cash")) then -- Nase podminka
local hrac = getPlayerName (source)
local money = getPlayerMoney(source)
outputChatBox("#ff9900" .. hrac .. " #ff9900ma " .. money .. " $", getRootElement(), 255, 0, 0,true ) -- Vypis do chatu
end -- Uzavreni podminky
end -- Uzavreni funkce
)