🖥️Client

GetCoordsFromZone

Return the center x and y coords of a zone from a zone id

Usage :

exports.core_gangs:getCoordsFromZone(zoneId)

Example :

local x, y = exports.core_gangs:getCoordsFromZone(6406)

GetZoneFromPlayer

Return the zone id from the current player position

Usage :

exports.core_gangs:getZoneFromPlayer()

Example :

local zoneId = exports.core_gangs:getZoneFromPlayer()

GetZoneFromCoords

Return the zone id from x and y coords

Usage :

exports.core_gangs:getZoneFromCoords(x, y)

Example :

local zoneId = exports.core_gangs:getZoneFromCoords(-1148.14, -1451.23)

GetPlayerOrganization

Return the player organization name or nil

Usage :

exports.core_gangs:getPlayerOrganization()

Example :

local organization = exports.core_gangs:getPlayerOrganization()

IsPlayerInZone

Return if the player is in the zone pass as parameter

Usage :

exports.core_gangs:isPlayerInZone(zoneId)

Example :

local isPlayerInZone = exports.core_gangs:isPlayerInZone(6048)

IsPlayerOrganizationZone

Return if the zone pass as parameter is own by the player organization

Usage :

exports.core_gangs:isPlayerOrganizationZone(zoneId)

Example :

local isPlayerOrganizationZone = exports.core_gangs:isPlayerOrganizationZone(6048)

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)

Last updated