QBox Integration
in qbox_core/modules/lib.lua add this part to your qbx.spawnVehiclefunction
qbx_core/modules/lub.lua:379 SetEntityOrphanMode(veh, 2)
-- add this here
TriggerEvent("vehicleSpawned", veh)
exports.qbx_core:EnablePersistence(veh)
return netId, veh
end