Jump to content

Bank Script Problems


Guest python

Recommended Posts

Posted

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!

Posted

Yeah, interior should be set.

Which marker doesn't show up? Does the arrow inside the building appears?

Posted

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.

Posted
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^^

Posted
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 =)

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