πŸ“Server

IsOrganizationZone

Return if the zone is own by the organization

Usage :

exports.core_gangs:isOrganizationZone(organizationName, zoneId)

Example :

local isOwnByF4L= exports.core_gangs:isOrganizationZone('f4l', 6048)

IsPlayerOrganizationZone

Return if the zone is own by the player organization

Usage :

exports.core_gangs:isPlayerOrganizationZone(identifier, zoneId)

Example :

-- QBCore
local isPlayerZone = exports.core_gangs:isPlayerOrganizationZone(Player.PlayerData.citizenid, 6048)
-- ESX
local isPlayerZone = exports.core_gangs:isPlayerOrganizationZone(Player.getIdentifier(), 6048)
-- All
local isPlayerZone = exports.core_gangs:isPlayerOrganizationZone(source, 6048)

SetPlayerToOrg

Add the player to the organization

Usage :

Example :


SetPlayerAsOrgOwner

Add player to the organization and set it as owner

Usage :

Example :


SetZoneToOrg

Set a zone to a specific organization

Usage :

Example :


StartWar

Start a war to a specific zone

Usage :

Example :


IsWarInProgress

Return the status of a zone, if a war is in progress or not

Usage :

Example :


RemovePlayerFromOrganization

Set a zone to a specific organization

Usage :

Example :


RemoveZoneOwner

Remove the owner of a zone and set it neutral

Usage :

Example :

GetOrganization

Return the organization of the player or nil

Usage :

Example :


CreateOrganization

Allow to create and assign organization

Usage :

Example :


DeleteOrganization

Allow to remove organization

Usage :

Example :

GetZoneOrganization

Return the organization name of a zone id or nil

Usage :

Example :


GetOrganizationZones

Return a list of all zones that an organziation owned

Usage :

Example :

Return :


RefreshOrganizationOnAllClient

Resend all organization list to all the client

Usage :

Example :


RefreshZoneOnAllClient

Resend all zones list to all the client

Usage :

Example :


RefreshCriminalOnAllClient

Resend all the criminal list to all the client

Usage :

Example :


RefreshBountyOnAllClient

Resend all the bounties to all the client

Usage :

Example :

Last updated