myTrunk integration
The Tutorial to intigrate myTrunk in Lux_VehiclePaper
Insert this in the bottom of the Server.lua in myTrunk and set Config.UsemyTrunk = ture
if you use ESX use this:
ESX.RegisterServerCallback('myTrunk:getTrunkSize', function(source, cb, vehiclename)
local TrunkSize = Config.SpecialVehicleLimit[vehiclename].maxWeight
cb(TrunkSize)
end)
if you use QbCore Use this:
QBCore.Functions.CreateCallback('myTrunk:getTrunkSize', function(source, cb, vehiclename)
local TrunkSize = Config.SpecialVehicleLimit[vehiclename].maxWeight
cb(TrunkSize)
end)
Last updated