Jump to content

How can i create a simple outputchatbox


Recommended Posts

When the player type command outputchatbox show up

  
function playrules(thePlayer, command) 
        outputChatBox("#FFFB0ENo cheat No spam No disrespect ", thePlayer,255,255,255,true) 
end 
addCommandHandler("rules", playrules) 
  

I tried but i failed

Link to comment

Here dont forget to edit to your text

function showhelp(thePlayer) 
    outputChatBox("/pm, send a personal message",thePlayer,255,0,0) 
    outputChatBox("/stations,set radio steams",thePlayer,255,0,0) 
    outputChatBox("/rules,a explanation of the rules and the punishments",thePlayer,255,0,0) 
    outputChatBox("/report report someone who breaks the rules ",thePlayer,255,0,0) 
    outputChatBox("/lock, lock your vehicle for others",thePlayer,255,0,0) 
end 
  
addCommandHandler("help",showhelp) 

Edited by Guest
Link to comment
function playrules(thePlayer) -- you don't need to define command 
        outputChatBox("#FFFB0ENo cheat No spam No disrespect ", thePlayer,255,255,255,true) 
end 
addCommandHandler("rules", playrules) 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...