This is the error i'm getting.
[ script:core_vehicle] Error loading script server/main.lua in resource core_vehicle: @core_vehicle/server/main.lua:144: attempt to index a nil value (global 'QBCore')
and this is the line:
144: QBCore.Functions.CreateUseableItem("toolbox" , function(playerId)
145: TriggerClientEvent('core_vehicle:toolUsed, playerId, "toolbox')
146:end)
i've had the same error with this line at client/main too:
while QBCore.Functions.GetPlayerData().job == nil do
[ script:core_vehicle] Error loading script server/main.lua in resource core_vehicle: @core_vehicle/server/main.lua:144: attempt to index a nil value (global 'QBCore')
and this is the line:
144: QBCore.Functions.CreateUseableItem("toolbox" , function(playerId)
145: TriggerClientEvent('core_vehicle:toolUsed, playerId, "toolbox')
146:end)
i've had the same error with this line at client/main too:
while QBCore.Functions.GetPlayerData().job == nil do