Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Item Images not showing in circle #12

Open
Ginjakz opened this issue Sep 6, 2024 · 0 comments
Open

Item Images not showing in circle #12

Ginjakz opened this issue Sep 6, 2024 · 0 comments

Comments

@Ginjakz
Copy link

Ginjakz commented Sep 6, 2024

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```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant