Skip to main content
target is always a player server id or an identifier (ESX identifier / QBCore & Qbox citizenid), so most exports also work for offline players.
Moving from vms_cityhall? With Config.Compat.vmsCityhall = true the same calls work on exports['vms_cityhall']. See Compability.

General

openCityHall

Opens the PC for a player anywhere on the map (laptop item, MDT…). That PC session skips the City Hall location check until the player closes it.

giveBill

Sends a bill to a player. Uses the same data format as vms_cityhall’s giveBill; its argument order (source, type, data, giveItem, cb) is accepted too.

Common fields

  • issuerName (string), job (string), society (string, optional), jobLabel (string, optional)
  • dateToPay (number): days until overdue, -1 = no due date
  • comments (string, optional)
  • taxFromInvoice / taxFromReceipt (number, optional): percent added on top
  • percentageForSociety (number, optional): share paid to the society, default Config.Society.defaultPercent

Traffic tickets

  • violation, locationOfViolation, vehicle = { plate, model }
  • penaltyPointsCount (number): adds penalty points
  • license + licenseSuspensionTime (seconds) or licenseRevocation = true

Example:


Licenses

getLicenses

hasLicense

Returns false while the license is suspended.

addLicense

removeLicense

Revokes a license (also in the synced framework license system).

suspendLicense

reinstateLicense

isLicenseSuspended

Other scripts’ license names (drive_b, practical_boat…) are translated with Config.Compat.licenseAliases.

getSuspendedLicenses

getPenaltyPoints / addPenaltyPoints / removePenaltyPoints / resetPenaltyPoints


Documents

hasDocument

addDocument

Adds a document or extends a valid one.

issueDocument

Issues a document item for free (e.g. from a job script). days defaults to the longest validity option of the type.

getDocumentBySerial

isDocumentValid

getCitizenSSN

GenerateSSN

Returns a new unique SSN. Same signature as vms (GenerateSSN(dob, sex)), both arguments are ignored.

Insurance

getHealthInsurance / addHealthInsurance

Uses the document type Config.Compat.healthInsurance.

getVehicleInsurance / addVehicleInsurance

Accepts a plate or a VIN. Adding extends a running policy.

Taxes & Treasury

getTaxAmount

addPlayerTaxToPay

Adds a personal tax using a rate from Config.Taxes.

addPlayerCustomTaxToPay

addPlayerFlatTax

getPlayerTaxes

addCompanyTaxAmount / addCompanyCustomTaxAmount / addCompanyFlatTaxAmount

Business income is added to the current month’s tax account.

registerBusinessTaxAccount

Prefer Config.BusinessTaxes.accounts in taxes.lua for permanent accounts.

getJobTaxes

getTreasuryMoney / addTreasuryMoney / removeTreasuryMoney


Businesses

business is a business id or name.

playerHasPermit

True when the player owns or works for an active business with a valid permit.

hasBusinessPermit

isBusinessEmployee

isBusinessVehicle

getBusinessVehicles

getPlayerBusinesses

getBusiness


VIN, Paychecks & Job Center

GenerateVIN

See the VIN guide for existing vehicles.

updatePaychecks

Hands a salary to City Hall instead of the bank. See the Paychecks guide.

getPaycheckBalance

setResumeAllowed

getJobResumes