Jump to content

@castillo


Monty

Recommended Posts

referes to the resource... what's wrong?

   basegate = createObject ( 3115, 1728.8000488281, -1378.0999755859, 13.5, 0, 90, 0 ) 
   basecol = createColCircle ( 1728.8000488281, -1378.0999755859, 13.5, 7 ) 
  
function openbase_area69gates(thePlayer) 
local gang = getAccountGang ( accountName ) 
if gang == "FBI" then 
       moveObject (basegate, 5000, 1728.8000488281, -1378.0999755859, 0 ) 
       
end 
end 
addEventHandler( "onColShapeHit", basecol, openbase_area69gates ) 

Link to comment

so is it correct???

  
   basegate = createObject ( 3115, 1728.8000488281, -1378.0999755859, 13.5, 0, 90, 0 ) 
   basecol = createColCircle ( 1728.8000488281, -1378.0999755859, 13.5, 7 ) 
  
function openbase_area69gates(thePlayer) 
local gang = exports['gang-resource']:getAccountGang ( getPlayerAccount ( thePlayer ) ) 
if gang == "FBI" then 
       moveObject (basegate, 5000, 1728.8000488281, -1378.0999755859, 0 ) 
       
end 
end 
addEventHandler( "onColShapeHit", basecol, openbase_area69gates ) 
  

Link to comment
Then you can use the exported function:
getAccountGang ( accountName ) 

Read my syntax Michael.

accountName, not account element.

@monty:

basegate = createObject ( 3115, 1728.8000488281, -1378.0999755859, 13.5, 0, 90, 0 ) 
basecol = createColCircle ( 1728.8000488281, -1378.0999755859, 13.5, 7 ) 
  
function openbase_area69gates ( thePlayer ) 
    local gang = exports [ 'gang-resource' ]:getAccountGang ( getAccountName ( getPlayerAccount ( thePlayer ) ) ) 
    if ( gang == "FBI" ) then 
        moveObject ( basegate, 5000, 1728.8000488281, -1378.0999755859, 0 ) 
    end 
end 
addEventHandler ( "onColShapeHit", basecol, openbase_area69gates ) 

Link to comment

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