Server

Export to Get Organization Name

exports['jc_organizaciones']:GetOrgName(identifier)

Parameters Explained

  • identifier: Player ID, for ESX and QB Core we take their CitizenID


Export to Obtain Organization Label

exports['jc_organizaciones']:GetOrgLabel(identifier)

Parameters Explained

  • identifier: Player ID, for ESX and QB Core we take their CitizenID


Export to Get Level

exports['jc_organizaciones']:GetOrgLevel(orgName)

Parameters Explained

  • orgName: Organization's label


Expor to Add Level to the Organization

exports['jc_organizaciones']:AddOrgLevel(orgName, amount)

Parameters Explained

  • orgName: Organization's label

  • amount: Remember that the maximum level is 10


Export to remove the organization level

exports['jc_organizaciones']:RemoveOrgLevel(orgName, amount)

Parameters Explained

  • orgName: Organization's label


Export to Get Organization ID

exports['jc_organizaciones']:GetOrgId(identifier)

Parameters Explained

  • identifier: Player ID, for ESX and QB Core we take their CitizenID


Export to Get player rank

exports['jc_organizaciones']:GetOrgRank(identifier)

Parameters Explained

  • identifier: Player ID, for ESX and QB Core we take their CitizenID


Export to see if the player is the boss or not

exports['jc_organizaciones']:IsOrgBoss(identifier)

Parameters Explained

  • identifier: Player ID, for ESX and QB Core we take their CitizenID


Export to View all members of the organization

-- Retrieve organization members
-- @param label        string              -- Organization label (unique)
-- @param type         string | nil        -- Output type: "full", "names", "ids", "ranks"
--
-- Types:
--   "full"   → returns full member objects: { id, nombre, rango }
--   "names"  → returns only member names
--   "ids"    → returns only member identifiers
--   "ranks"  → returns only member ranks
--
-- @return table                            -- Members in the requested format
exports['jc_organizaciones']:GetOrgMembers(label, type)

Parameters Explained

  • label: Label of the organization you want to get the money from

  • type: Here you specify what you want it to return


Export to see the organization's money

exports['jc_organizaciones']:GetOrgMoney(label)

Parameters Explained

  • label: Label of the organization you want to get the money from.


Export to add money to an organization

exports['jc_organizaciones']:AddOrgMoney(label, amount)

Parameters Explained

  • label: Label of the organization you want to get the money from.

  • amount: Amount to deposit


Export to remove money from an organization

exports['jc_organizaciones']:RemoveOrgMoney(label, amount)

Parameters Explained

  • label: Label of the organization you want to get the money from.

  • amount: Amount to withdraw

Last updated