Item Images not showing in circle
Closed this issue · 0 comments
Ginjakz commented
I have followed the readme instructions exactly but cannot get inventory images to show in the progress bar. Below are my codes and everything is working perfectly except for the images not showing.
print(itemName)
QBCore.Functions.Progressbar('eat_something', Lang:t('consumables.eat_progress'), 5000, false, true, {
disableMovement = false,
disableCarMovement = false,
disableMouse = false,
disableCombat = true
}, {
animDict = 'mp_player_inteat@burger',
anim = 'mp_player_int_eat_burger',
flags = 49
}, {
model = 'prop_cs_burger_01',
bone = 60309,
coords = vec3(0.0, 0.0, -0.02),
rotation = vec3(30, 0.0, 0.0),
}, {}, function() -- Done
TriggerEvent('qb-inventory:client:ItemBox', QBCore.Shared.Items[itemName], 'remove')
TriggerServerEvent('consumables:server:addHunger', QBCore.Functions.GetPlayerData().metadata.hunger + Config.Consumables.eat[itemName])
TriggerServerEvent('hud:server:RelieveStress', math.random(2, 4))
end, itemName)
end)```
**Progressbar/client**
```function Process(action, start, tick, finish)
ActionStart()
Action = action
if Action.icon then
if QBCore.Shared.Items[tostring(Action.icon)] then
local img = "nui://ps-inventory/html/" -- default qb-core inventory link```