Paplo Posted August 30, 2013 Share Posted August 30, 2013 mark = createMarker ( x, y, z, "cylinder", 255, 255, 255, 0, 100 ) addEventHandler( "onClientMarkerHit", mark, function(player) theVehicle = getPlayerOccupiedVehicle (player) driver = getVehicleOccupant ( theVehicle ) if theVehicle then outputChatBox("test", driver) end end ) i want show "test" in chat for driver only but this code show to all player can help please ? Link to comment
GamerDeMTA Posted August 30, 2013 Share Posted August 30, 2013 outputChatBox in client side doesn't need the argument 'to who'. Link to comment
Driggero Posted August 30, 2013 Share Posted August 30, 2013 Use this instead outputChatBox( "test", localPlayer ) Link to comment
GamerDeMTA Posted August 30, 2013 Share Posted August 30, 2013 WIKI: CLIENT: 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 comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now