Description
Returns the image URL for a given item from QBCore's shared items.
Parameters
item (string): The name/key of the item (e.g., "bread").
item
"bread"
Return Value
Returns a string with the full image path (nui://qb-inventory/html/images/...).
nui://qb-inventory/html/images/...
Returns 'Missing Item' if the item or image does not exist.
'Missing Item'
Example Use Case
local imagePath = ps.getImage("water_bottle") print("Image Path: " .. imagePath)
Last updated 5 months ago