Skip to main content

GetItemLabel

ESX.GetItemLabel(item)

This function returns an item label.

Argument

ArgumentData TypeOptionalDefault ValueExplanation
itemstringNo-Item name

Example

RegisterCommand('checklabel', function(source, args)
if args[1] == nil then print('no argument') end
local label = ESX.GetItemLabel(args[1])

print(label)
end)