Frugle

Members
  • Content Count

    5
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Frugle

  • Rank
    Vic
  1. Ok, thank you. I was testing some stuff.
  2. function joinHandler() local x = 244.0065612793 local y = 2507.7377929688 local z = 16.496959686279 spawnPlayer(source, x, y, z) fadeCamera(source, true) setCameraTarget(source, source) outputChatBox("Welcome to My Server", source) end addEventHandler("onPlayerJoin", getRootElement(), joinHandler) function ClientChat(text) if ( text == "pos" ) then outputConsole( "SUCCESS" ) outputChatBox( "SUCCESS" ) else outputConsole( "FAILURE" ) outputChatBox( "FAILURE" ) end end addEventHandler ("onClientChatMessage", getRootElement(), ClientChat) I test it by typing pos to ingame chat. Typing something else doesn't output "FAILURE" too.
  3. I've tried everything but I can't get it to work.
  4. Thank you but it still doesn't work for some reason .
  5. 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!