Server Exports
updatePaychecks
With this export you can add or remove money in the paychecks for a specific player, they will be collectible in the cityhall menu.
---@param {src: number}: player id
---@param {amount: number}: The monetary amount to be adjusted in the player's paycheck
---@param {action: string}: Specifies the action to take — either 'add' to increase or 'remove' to decrease the paycheck amount.
exports['vms_cityhall']:updatePaychecks(src, amount, action)getHealthInsurance
Get information about the player's health insurance.
---@param {src: number}: player id
---@return {isInsured: boolean}
---@return {timestamp: number}: time until which it is insured
local isInsured, timestamp = exports['vms_cityhall']:getHealthInsurance(src)addHealthInsurance
Add health insurance time.
getVehicleInsurance
Function checks the insurance status of a vehicle using its Vehicle Identification Number (VIN) or license plate. It returns a boolean indicating whether the vehicle is insured, and if insured, it also provides the start and expiry dates of the insurance policy.
addVehicleInsurance
Allows you to assign a vehicle's insurance policy based on its VIN number or license plate for a specific number of days.
giveBill
Using the above export, you can assign a fine or invoice to a player, without the required issuance by another player or acceptance by the receiving player, an example application, for example, for speed cameras.
suspenseLicense
Cancellation of the license and its suspension for a specified period of time, using, for example, vms_driveschoolv2, then the player will not be able to take the exam until the lockout ends.
reinstateLicense
Restores the ability to take exams * It does not return previously revoked licenses to the player.
isLicenseSuspended
Checking the license information, this will return information on whether the license is suspended and if it is, it will also return the end date of the suspension.
getPenaltyPoints
Get information about a player's penalty points.
addPenaltyPoints
Add penalty points to the player.
removePenaltyPoints
Remove penalty points for the player.
resetPenaltyPoints
Resets the penalty points and clears the player's list of penalty points.
setResumeAllowed
Allows or prevents citizens from sending resumes to a specific job in the Job Center section of the city hall menu.
getJobResumes
Returns all active resumes sent by citizens for a specific job.
getJobTaxes
Returns all the company's taxes, both paid and not yet paid
getTaxAmount
Calculates tax information on the specified amount.
addPlayerTaxToPay
Add a private player tax to be paid on the specified amount using the path from Config.Taxes.
addPlayerCustomTaxToPay
Add a private player custom tax to be paid on the specified amount.
addCompanyTaxAmount
Add the company's tax to be paid on the specified amount using the path from Config.Taxes.
addCompanyCustomTaxAmount
Add custom company tax to be paid on the amount specified.
addCompanyFlatTaxAmount
Add to the company the amount of tax to be paid.
registerBusinessTaxAccount
Register the company as a tax business.
You don't have to use this export, you can enter the company data in the Config.TaxBusinessAccounts which is located in vms_cityhall/config/config.taxes.lua
getCompanyMoney
Get information about the current balance of cityhall.
addCompanyMoney
Add money to cityhall balance.
removeCompanyMoney
Take money from the balance of cityhall.
GenerateSSN
GenerateVIN
Last updated
Was this helpful?