MAB Posted August 8, 2015 Share Posted August 8, 2015 well.. all players see the text when one player hit the marker server : local marker = createMarker(0,0,0) function hitmarker(hit) if getElementType(hit) ~= "player" then return end triggerClientEvent ("show",hit) end addEventHandler("onMarkerHit",marker,hitmarker) client : addEvent("show",true) addEventHandler("show",root, function() addEventHandler("onClientRender",root,draw) end function draw() dxDrawText("text",0,0) end Link to comment
iMr.SFA7 Posted August 8, 2015 Share Posted August 8, 2015 local marker = createMarker(x,y,z) function hitmarker(hit) if getElementType(hit) ~= "player" then return end triggerClientEvent (hit,"show",hit) end addEventHandler("onMarkerHit",marker,hitmarker) 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