Server Exports
Here you will find all the useful exports for this asset, please read each step and example carefully to better understand how it works, we do not recommend using these if you are not an experienced developer.
impound
Impounds a vehicle by specifying the plate.
SpawnVehicle
This export is for spawning a vehicle externally so that the persistence value is added to it.
All values requested by the export are sql values, in case of esx from the owned_vehicles table or qbcore player_vehicles table.
setVehicleToPersistent
Give persistence to an external vehicle, spawned through external vehicleshops or spawn assets that you have on your server.
removeVehicleFromPersistent
Removes the persistence of one or more vehicles so that they can be removed from the map after native events. You can use it with one or more vehicles.
updateVehiclePlate
Change the old plate for a new one with this export, this allows instant plate change and you should add it in your change plate asset, if you have one, otherwise ignore it.
An example of using this system would be the following.
Last updated
Was this helpful?