Jump to content

Marker Show Message


Facundoz

Recommended Posts

I want to make a script that creates a marker and when the player stands on it, the marker will show him a message in chat ... how can I do it? i make this but dosnt work

createMarker ( 2492.6416015625, -1667.4169921875, 13.34375, "cylinder", 1.5, 255, 255, 0, 170, source )


function MarkerHit ( hitPlayer, matchingDimension )
	outputChatBox ( getPlayerName(hitPlayer) .. " You are now in the marker 1" )
end
addEventHandler ( "onClientMarkerHit", getRootElement(), MarkerHit )

 

Link to comment
  • Moderators

And you try to use it on client side, right?

(and on client side you can't use 10th argument of createMarker, because player who can see the marker, can be only localPlayer, so just remove it)

Edited by Patrick
  • Like 1
Link to comment
On 4/3/2020 at 6:12 AM, Patrick said:

And you try to use it on client side, right?

(and on client side you can't use 10th argument of createMarker, because player who can see the marker, can be only localPlayer, so just remove it)

Thank you!

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