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’sgiveBill; its argument order (source, type, data, giveItem, cb) is accepted too.
Explanation
Explanation
Common fields
issuerName(string),job(string),society(string, optional),jobLabel(string, optional)dateToPay(number): days until overdue,-1= no due datecomments(string, optional)taxFromInvoice/taxFromReceipt(number, optional): percent added on toppercentageForSociety(number, optional): share paid to the society, defaultConfig.Society.defaultPercent
Traffic tickets
violation,locationOfViolation,vehicle = { plate, model }penaltyPointsCount(number): adds penalty pointslicense+licenseSuspensionTime(seconds) orlicenseRevocation = true
Example:
Licenses
getLicenses
hasLicense
Returnsfalse 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 typeConfig.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 fromConfig.Taxes.
addPlayerCustomTaxToPay
addPlayerFlatTax
getPlayerTaxes
addCompanyTaxAmount / addCompanyCustomTaxAmount / addCompanyFlatTaxAmount
Business income is added to the current month’s tax account.registerBusinessTaxAccount
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.Example usage
Example usage
hasBusinessPermit
isBusinessEmployee
isBusinessVehicle
getBusinessVehicles
getPlayerBusinesses
getBusiness
VIN, Paychecks & Job Center
GenerateVIN
See the VIN guide for existing vehicles.
