If you have the latest version of my resource, then you can use the function getPlayerGang exported fro mit.
Then you can check like this on your script:
marker1 = createMarker (-2639.30, 1406.47, 906.46,"cylinder",1.5,0,200,0,0)
marker2 = createMarker (-2636.77, 1402.80, 906.46,"cylinder",1.5,0,200,0,0)
function gangEntrence ( hitElement )
if ( getElementType ( hitElement ) == "player" ) then
if ( exports [ "gang_system" ]:getPlayerGang ( hitElement ) == "Glory" ) then
setElementPosition ( hitElement, -2636.77, 1402.80, 906.46 )
end
end
end
addEventHandler ( "onMarkerHit", marker1, gangEntrence )
function gangExit ( hitElement )
if ( getElementType ( hitElement ) == "player" ) then
if ( exports [ "gang_system" ]:getPlayerGang ( hitElement ) == "Glory" ) then
setElementPosition ( hitElement, -2639.30, 1406.47, 906.46 )
end
end
end
addEventHandler ( "onMarkerHit", marker2, gangExit )