OPX//77
CreatorsClient exports

HasItem

Last updated on

Whether the local player's bag holds some units of an item.

local res = exports.opx_infinity:HasItem(item, count)

Sync.

Parameters

  • item: string
  • count?: integer — default 1

Returns

  • boolean

Errors

  • export.badArgument
Example
if exports.opx_infinity:HasItem('lockpick').value then print('can pick') end

On this page

No Headings