#qb-vehicleshop | Keys not working
1 messages · Page 1 of 1 (latest)
are you using qb-vehiclekeys
i am
what gas script
cdn-fuel
on client.lua look for this:
tempShop = insideShop -- temp hacky way of setting the shop because it changes after the callback has returned since you are outside the zone
QBCore.Functions.TriggerCallback('QBCore:Server:SpawnVehicle', function(netId)
local veh = NetToVeh(netId)
exports['LegacyFuel']:SetFuel(veh, 100)
SetVehicleNumberPlateText(veh, plate)
SetEntityHeading(veh, Config.Shops[tempShop]['VehicleSpawn'].w)
TriggerEvent('vehiclekeys:client:SetOwner', QBCore.Functions.GetPlate(veh))
TriggerServerEvent('qb-mechanicjob:server:SaveVehicleProps', QBCore.Functions.GetVehicleProperties(veh))
end, vehicle, Config.Shops[tempShop]['VehicleSpawn'], true)
end)
did you change:
exports['LegacyFuel']:SetFuel(veh, 100)
to
exports[cdn-fuel']:SetFuel(veh, 100)
yeah i updated it n forgot to. thank you!
all fixed?
yeah
dope