Facundoz Posted April 2, 2020 Share Posted April 2, 2020 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 Patrick Posted April 3, 2020 Moderators Share Posted April 3, 2020 (edited) 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 April 3, 2020 by Patrick 1 Link to comment
Facundoz Posted April 6, 2020 Author Share Posted April 6, 2020 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
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