Jump to content

Help with Job Marker, Castillo's Gang System


Recommended Posts

I am using Castillo's gang system meaning I want this to all be changed into castillo's gang system thing. If player is in FBI gang than they are aloud to take this job and have the 286 skin.

local Skinmarker = createMarker(919.59997558594, -1004.299987793, 37, "cylinder", 2, 33, 33, 33, 255) -- umkleide 
local theTeam = createTeam( "FBI", 31, 31, 31 ) 
addEventHandler("onMarkerHit", Skinmarker, 
function(hitElement) 
    if getElementType(hitElement) ~= 'player' then return end 
    if not(isFBI(hitElement)) then return end 
    setElementModel(hitElement, 286) 
            setPlayerTeam(hitElement, theTeam) 
end) 
function isFBI(thePlayer) 
    local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) 
    if isObjectInACLGroup ("user."..accName, aclGetGroup ( "FBI" ) ) then 
        return true; 
    else 
        return false; 
    end 
end 

Link to comment

Try this:

  
local Skinmarker = createMarker(919.59997558594, -1004.299987793, 37, "cylinder", 2, 33, 33, 33, 255) -- umkleide 
local theTeam = createTeam( "FBI", 31, 31, 31 ) 
addEventHandler("onMarkerHit", Skinmarker, 
function(hitElement) 
    if getElementType(hitElement) ~= 'player' then return end 
     local gang = exports [ "gang_system" ]:getPlayerGang ( hitElement ) 
    if ( gang == "FBI" ) then 
    setElementModel(hitElement, 286) 
    setPlayerTeam(hitElement, theTeam) 
end 
) 
  

Link to comment
Try this:
  
local Skinmarker = createMarker(919.59997558594, -1004.299987793, 37, "cylinder", 2, 33, 33, 33, 255) -- umkleide 
local theTeam = createTeam( "FBI", 31, 31, 31 ) 
addEventHandler("onMarkerHit", Skinmarker, 
function(hitElement) 
    if getElementType(hitElement) ~= 'player' then return end 
     local gang = exports [ "gang_system" ]:getPlayerGang ( hitElement ) 
    if ( gang == "FBI" ) then 
    setElementModel(hitElement, 286) 
    setPlayerTeam(hitElement, theTeam) 
end 
) 
  

not working please fix.

Link to comment

  
local Skinmarker = createMarker(919.59997558594, -1004.299987793, 37, "cylinder", 2, 33, 33, 33, 255) -- umkleide 
local theTeam = createTeam( "FBI", 31, 31, 31 ) 
addEventHandler("onMarkerHit", Skinmarker, 
function(hitElement) 
    if getElementType(hitElement) ~= 'player' then return end 
     local gang = exports [ "gang_system" ]:getPlayerGang ( hitElement ) 
    if ( gang == "FBI" ) then 
    setElementModel(hitElement, 286) 
    setPlayerTeam(hitElement, theTeam) 
         end 
end 
) 
  

He has forgotten the end.

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