#qb-vehicleshop | Keys not working

1 messages · Page 1 of 1 (latest)

onyx basin
#

qb-vehicleshop | Keys not working

steady zenith
#

are you using qb-vehiclekeys

onyx basin
steady zenith
onyx basin
#

cdn-fuel

steady zenith
# onyx basin 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)
onyx basin
#

yeah i updated it n forgot to. thank you!

steady zenith
#

all fixed?

onyx basin
#

yeah

steady zenith
#

dope