IsOrganizationZone
Return if the zone is own by the organization
Usage :
Copy exports.core_gangs:isOrganizationZone(organizationName, zoneId)
Example :
Copy local isOwnByF4L = exports.core_gangs:isOrganizationZone( 'f4l' , 6048 )
IsPlayerOrganizationZone
Return if the zone is own by the player organization
Usage :
Copy exports.core_gangs:isPlayerOrganizationZone(zoneId)
Example :
Copy local isPlayerZone = exports.core_gangs:isPlayerOrganizationZone( 6048 )
SetPlayerToOrg
Add the player to the organization
Usage :
Copy exports.core_gangs:setPlayerToOrg(playerSource, organizationName)
Example :
Copy exports.core_gangs:setPlayerToOrg( 10 , 'f4l' )
SetPlayerAsOrgOwner
Add player to the organization and set it as owner
Usage :
Copy exports.core_gangs:setPlayerAsOrgOwner(playerSource, organization)
Example :
Copy exports.core_gangs:setPlayerAsOrgOwner( 10 , 'f4l' )
SetZoneToOrg
Set a zone to a specific organization
Usage :
Copy exports.core_gangs:setZoneToOrg(zoneId, organizationName)
Example :
Copy exports.core_gangs:setZoneToOrg( 6048 , 'f4l' )
RemovePlayerFromOrganization
Set a zone to a specific organization
Usage :
Copy exports.core_gangs:removePlayerFromOrganization(playerIdentifier)
Example :
Copy exports.core_gangs:removePlayerFromOrganization(Player.PlayerData.citizenid)
exports.core_gangs:removePlayerFromOrganization(xPlayer.getIdentifier())
RemoveZoneOwner
Remove the owner of a zone and set it neutral
Usage :
Copy exports.core_gangs:removeZoneOwner(zoneId)
Example :
Copy local zoneId = exports.core_gangs:removeZoneOwner( 6048 )
GetOrganization
Return the organization of the player or nil
Usage :
Copy exports.core_gangs:getOrganization(identifier)
Example :
Copy local organization = exports.core_gangs:getOrganization( 10 )
-- OR
local organization = exports.core_gangs:getOrganization(Player.PlayerData.citizenid)
-- OR
local organization = exports.core_gangs:getOrganization(xPlayer.getIdentifier())
GetZoneOrganization
Return the organization name of a zone id or nil
Usage :
Copy exports.core_gangs:getZoneOrganization(zoneId)
Example :
Copy local organization = exports.core_gangs:getZoneOrganization( 6048 )
GetOrganizationZones
Return a list of all zones that an organziation owned
Usage :
Copy exports.core_gangs:getOrganizationZones(organizationName)
Example :
Copy local zonesId = exports.core_gangs:getOrganizationZones( 'f4l' )
Return :
RefreshOrganizationOnAllClient
Resend all organization list to all the client
Usage :
Copy exports.core_gangs:refreshOrganizationOnAllClient()
Example :
Copy exports.core_gangs:refreshOrganizationOnAllClient()
RefreshZoneOnAllClient
Resend all zones list to all the client
Usage :
Copy exports.core_gangs:refreshZoneOnAllClient()
Example :
Copy exports.core_gangs:refreshZoneOnAllClient()
RefreshCriminalOnAllClient
Resend all the criminal list to all the client
Usage :
Copy exports.core_gangs:refreshCriminalOnAllClient()
Example :
Copy exports.core_gangs:refreshCriminalOnAllClient()
RefreshBountyOnAllClient
Resend all the bounties to all the client
Usage :
Copy exports.core_gangs:refreshBountyOnAllClient()
Example :
Copy exports.core_gangs:refreshBountyOnAllClient()