Jump to content

outputChatBox for dirver only


Recommended Posts

mark = createMarker ( x, y, z, "cylinder", 255, 255, 255, 0, 100 ) 
addEventHandler( "onClientMarkerHit", mark, 
theVehicle = getPlayerOccupiedVehicle (player) 
driver = getVehicleOccupant ( theVehicle ) 
      if theVehicle then 
outputChatBox("test", driver) 

i want show "test" in chat for driver only but this code show to all player -_-

can help please ?

Link to post



text: The text string that you wish to send to the chat window. If more than 128 characters it will not be showed in chat.

Optional Arguments

NOTE: When using optional arguments, you must supply all arguments before the one you wish to use. For more information on optional arguments, see Optional Arguments.

r: The amount of red in the color of the text. Default value is 231.

g: The amount of green in the color of the text. Default value is 217.

b: The amount of blue in the color of the text. Default value is 176.

colorCoded: A boolean value determining whether or not '#RRGGBB' tags should be used.

The visibleTo argument is only serverside

Link to post

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...