getImage
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"
).
Return Value
Returns a string with the full image path (
nui://qb-inventory/html/images/...
).Returns
'Missing Item'
if the item or image does not exist.
Example Use Case
local imagePath = ps.getImage("water_bottle")
print("Image Path: " .. imagePath)
Last updated