function ClientChat(text)
if ( text == "pos" ) then
outputConsole ( "SUCCESS" )
outputChatBox ( "SUCCESS", getRootElement(), 255, 255, 255, true )
else
outputConsole ( "FAILURE" )
outputChatBox ( "FAILURE", getRootElement(), 255, 255, 255, true )
end
end
addEventHandler ("OnClientChatMessage", getRootElement(), ClientChat)
I am trying to output SUCCESS to chatbox and console if player types pos, but nothing happens Not even FAILURE output.
Need help!