Skip to main content

addPlayerData

Adds an amount to a player’s specified data field. Adding to exp also handles leveling up, including the level-up notification and log.
number
required
The source (player ID) to add data to.
string
required
The data field to modify: "level", "exp", "vehicles" or "parts".
number
required
The amount to add to the specified data field.

issueContract

Issues a contract to a player exactly as the broker would: the same blacklist, cooldown, police-count, tier and inventory checks apply, and the player is notified of the result. Use it to hand out contracts from your own script, phone or job.
number
required
The source (player ID) to issue the contract to.

getContract

Returns the player’s raw contract record, or nil when they have none.
number
required
The source (player ID) to look up.

getContractDetails

Returns the same information the contract case file displays, with labels resolved and the remaining time computed. Always returns a table.
number
required
The source (player ID) to look up.
When the player has no contract the table is just { status = "none" }.

GetRuntimeConfig

Returns the live configuration as edited in /chopadmin. Pass a section name for that section only, or omit it for every section.
string
One of setup, start, experience, contracts, locations, minigame, items, shops or logs.
getPlayerData and getLevelData are also available on the server. See the Shared page.

Hooks

Server hooks live in lua/server/utils/hooks.lua, which ships open under escrow. Edit the functions in place to add your own rules and reactions.
Looking for an export we don’t have listed here? Contact us and we’ll do what we can!