#Ammo not working

1 messages · Page 1 of 1 (latest)

royal bolt
#

line of code im having issues with
qb-core/shared/main line 208

-- AMMO
for ammoItem, properties in pairs(Config.AmmoTypes) do
QBCore.Functions.CreateUseableItem(ammoItem, function(source, item)
TriggerClientEvent('qb-weapons:client:AddAmmo', source, properties.ammoType, properties.amount, item)
end)
end

error code -- script:qb-weapons] SCRIPT ERROR: @qb-weapons/server/main.lua:208: attempt to index a nil value (global 'Config')

issue im having no guns are taking ammo ive tried googling the problem theres nothing showing support for this and its a default code from qbcore so idk why its bugging

#

@everyone someone help plz

flat folio
#

Trying to @ everyone in a 6000 member discord isn't going to speed up your response time. You have an issue with your qb-weapons config. Revert it to the default, or provide it here where someone may be able to help.

brisk epoch
#

Also after waiting an entire minute like an impatient loser

royal bolt
#

my bad lol i seen the other people doing it but it was the artifact i was using it was bugged i updated my artifacts now everything is working

#

it didnt work since i started the server