Guest Posted February 19, 2008 Share Posted February 19, 2008 Hello, I have the following code so far to teleport players from the 'outside' marker into the 'PAPER' interior. However, the marker itself does not show and I can't seem to work out what the problem is. Heres the code: // Banking entryCol = createColSphere ( 1571, -1336, 16 ) addEventHandler ( "onResourceStart", getRootElement(), "bankLoad" ) function bankLoad () bankBlip = createBlip ( 1571, -1336, 16, 52 ) local marker = createMarker ( 1571, -1336, 16, "arrow", 1, 0 ,255, 255, 50 ) local marker2 = createMarker ( 390.32, 173.69, 1008.38, "arrow", 1, 0, 255, 255, 50 ) local marker3 = createMarker ( 361, 173, 1008, "cylinder", 1, 0, 255, 255, 50 ) bankCol = createColSphere ( 361, 173, 1008 ) exitCol = createColSphere ( 390.32, 173.69, 1008.38 ) end addEventHandler ( "onColShapeHit", entryCol, "enterBank" ) function enterBank () setElementInterior ( player, 3, 389, 173, 1008.38 ) end addEventHandler ( "onColShapeHit", exitCol, "leaveBank" ) function leaveBank () setElementInterior ( player, 0, 1575.64, -1335.25, 16.48 ) end Help would be grateful Thanks! Link to comment
Mr.Hankey Posted February 19, 2008 Share Posted February 19, 2008 Maybe you have to set the marker element in the same interior but this is just a guess =) Link to comment
50p Posted February 20, 2008 Share Posted February 20, 2008 Yeah, interior should be set. Which marker doesn't show up? Does the arrow inside the building appears? Link to comment
mabako Posted February 20, 2008 Share Posted February 20, 2008 I'm sure I pointed out this problem before, you need to STREAM "arrow" markers - GTA should fade them in when you're near, but they do simply not appear. Link to comment
Mr.Hankey Posted February 21, 2008 Share Posted February 21, 2008 I'm sure I pointed out this problem before, you need to STREAM "arrow" markers - GTA should fade them in when you're near, but they do simply not appear. hm... i don't think so because if i create an arrow marker with my script it works perfectly and i can see it very well^^ Link to comment
Twig Posted February 21, 2008 Share Posted February 21, 2008 Somehow I don't think Mabako was asking a question. He is correct in what he says. Link to comment
Mr.Hankey Posted February 21, 2008 Share Posted February 21, 2008 Somehow I don't think Mabako was asking a question. He is correct in what he says. I just made a comment to what he said because as i said before in my script creating an "arrow" marker works fine but maybe it has to do with the fact that i created the marker clientside... .If you don't belive me i'm very pleased to demonstrate it 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