Jump to content

[HELP]Marker don't appear


ibootleeg

Recommended Posts

Posted

Hello, the title says it all, so my problem is:

I created an interior and created two markers, one for entering and

other to exit, the marker entry appears, but when I enter

into the interior, the marker that I created to return to the outside, does not appear!

SS Outside:

http://i.imgur.com/9UOB2Fn.png

SS Inside:

http://i.imgur.com/q64eVpL.png

(The pictures are great for this reason the link's)

And to complete here is the code with the coordinates x, y, z :

  
enterMarker = createMarker(1481.139, -1771.914, 19.5, "arrow", 1.5, 0, 255, 255, 0) 
  
exitMarker = createMarker(389.76, 173.768, 1008.383, "cylinder", 1.5, 0, 255, 255, 0) 
  
function markerEnter(hitPlayer) 
    if(hitPlayer == localPlayer) then 
        setElementInterior (getLocalPlayer(), 3, 384.705, 173.77, 1008.383) 
    end 
end 
addEventHandler ("onClientMarkerHit", enterMarker, markerEnter) 
  
function markerExit(hitPlayer) 
    if(hitPlayer == localPlayer) then 
        setElementInterior (getLocalPlayer(), 0, 1481.262, -1768.324, 18.796) 
    end 
end 
addEventHandler ("onClientMarkerHit", exitMarker, markerExit) 
  

Posted

LOL ! Just see te code, this is not my problem, my problem is, when i enter on the interior, the marker of exit don't appear ! =c

setElementInterior(exitMarker, 3) 

Put this in a new line after exitMarker = createMarker(...)

Your signature image is too large.

Removed

Posted

LOL ! Just see te code, this is not my problem, my problem is, when i enter on the interior, the marker of exit don't appear ! =c

You must to define the interior of the marker.

  
local enterMarker = createMarker(1481.139, -1771.914, 19.5, "arrow", 1.5, 0, 255, 255, 0) 
local exitMarker = createMarker(389.76, 173.768, 1008.383, "cylinder", 1.5, 0, 255, 255, 0) 
setElementInterior(exitMarker, 3) 
  
function markerEnter(hitPlayer) 
    if(hitPlayer == localPlayer) then 
        setElementInterior (getLocalPlayer(), 3, 384.705, 173.77, 1008.383) 
    end 
end 
addEventHandler ("onClientMarkerHit", enterMarker, markerEnter) 
  
function markerExit(hitPlayer) 
    if(hitPlayer == localPlayer) then 
        setElementInterior (getLocalPlayer(), 0, 1481.262, -1768.324, 18.796) 
    end 
end 
addEventHandler ("onClientMarkerHit", exitMarker, markerExit) 

Please do not PM me with scripting related question nor support, use the forums instead.

Posted

You must to define the interior of the marker.

  
local enterMarker = createMarker(1481.139, -1771.914, 19.5, "arrow", 1.5, 0, 255, 255, 0) 
local exitMarker = createMarker(389.76, 173.768, 1008.383, "cylinder", 1.5, 0, 255, 255, 0) 
setElementInterior(exitMarker, 3) 
  
function markerEnter(hitPlayer) 
    if(hitPlayer == localPlayer) then 
        setElementInterior (getLocalPlayer(), 3, 384.705, 173.77, 1008.383) 
    end 
end 
addEventHandler ("onClientMarkerHit", enterMarker, markerEnter) 
  
function markerExit(hitPlayer) 
    if(hitPlayer == localPlayer) then 
        setElementInterior (getLocalPlayer(), 0, 1481.262, -1768.324, 18.796) 
    end 
end 
addEventHandler ("onClientMarkerHit", exitMarker, markerExit) 

Thanks, now it works, but i have another problem ):

when I go to my friend, works perfectly, but I do not see him inside her, he becomes invisible.

SS

http://i.imgur.com/FzAMMMt.png

Posted

Try making the whole script server side.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted
Try making the whole script server side.

Yeah ! Worked perfectly, used the events as studied in the wiki and turned it into server mode as you said, thank you very much !

Posted

You're welcome.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

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