Server Exports

towVehicle

Towing the vehicle

---@param {*netId: number}: Vehicle ID or Network ID of entity
---@param {*plate: string}: License plate number
---@param {*impoundId: string}: Impound ID (by default are 'Impound1'/'ImpoundBoat'/'ImpoundPlane'/'ImpoundHeli'/'ImpoundPolice')
---@param {fine: string}: Towing fine title [Not required]
---@param {fine_amount: number}: Towing fine amount [Not required]
---@param {*towedBy: string}: Name of who towed
exports["vms_garagesv2"]:towVehicle(
    netId,
    plate,
    impoundId,
    fine,
    fine_amount,
    towedBy
)

giveVehicle

Adding vehicles using export, application for example admin menu. After adding, the vehicle will go to the impound matching for the selected type.


deleteVehicle

If you are using Vehicle Persistent and want to remove a parked vehicle, use the following export, which will allow you to remove the persistent vehicle.


vehiclePersistence

Enables or disables persistence for a specific vehicle. If enabled, the vehicle will be saved and restored after a restart or resource reload. Use this export to dynamically toggle persistence for any spawned vehicle.


updateParkedVehiclePlate

Export possible to an external resource for changing license plates. This export will be needed to update the current plates if the vehicle is currently parked.


isInInterior

Export to check if player is currently in any underground garage interiors.


getCompanyMoney

With this export, you can see how much money is in the parking safe.


addCompanyMoney

With this export you can add money to the parking safe.


removeCompanyMoney

With this export you can remove money from the parking safe.


getGarageInfo

Information about the garage such as the label and coordinates


registerHousingGarage

Registers the garage assigned to a specific property in the housing system. The function automatically creates a garage file in the CREATED_PARKINGS folder, making the garage immediately available.

Example Usage

refreshVehicles

Refresh all vehicles based on the current database data in the specified parking lot.

Last updated

Was this helpful?