FWCentral Posted December 7, 2011 Posted December 7, 2011 How can i create a marker(checkpoint) only visible to the player that started the function? I've already tried this: firstmarker = createMarker(1372.04126, -1600.24585, 13.24007,"checkpoint", 1.5, 0, 255, 0, false)--Also tried source and getRootElement as the last argument this didn't work -- other stuff like marker blip ( This works only visible to the player ) for id, player in ipairs(getElementsByType("player")) do -- added this to see if i can hide it from all players setElementVisibleTo ( firstmarker, player, false ) end setElementVisibleTo(firstmarker, source, true) -- then show it to the source -- this is inside a function that is triggerd from client that works fine. So far ive had no luck with this, I tried adding it client side but onMarkerHit is Server Sided so i don't know whats going on with this.
Aibo Posted December 7, 2011 Posted December 7, 2011 create it clientside and use onClientMarkerHit event.
Castillo Posted December 7, 2011 Posted December 7, 2011 firstmarker = createMarker(1372.04126, -1600.24585, 13.24007,"checkpoint", 1.5, 0, 255, 0, false) setElementVisibleTo( firstmarker, getRootElement(), false ) setElementVisibleTo(firstmarker, source, true) -- then show it to the source -- this is inside a function that is triggerd from client that works fine.
FWCentral Posted December 7, 2011 Author Posted December 7, 2011 Thanks you both got it so i can keep my server markers if i use Solidsnake14's method?
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