๐Ÿ›ฅ๏ธClient Exports

openInventory

---Lower y upper cases are sensitives
---@param invType string
---@param id string
---@param data? table
exports.origen_inventory:openInventory(invType, id, data?)

invType: string

  • 'player'

  • 'shop'

  • 'stash'

  • 'drop'

  • 'glovebox'

  • 'trunk'

Examples

exports.origen_inventory:openInventory('player', 1)

Please note that this export has been adapted for compatibility when migrating from other inventories.

Searches the inventory for an item, or list of items, result varying based on the first argument.

  • search: 'slots' or 'count'

    • 'slots' returns a table of slots where the item was found at.

    • 'count' returns the count of the specified item in player's inventory. If searching for multiple items returns key-value pairs of itemName = count.

  • item: table or string

    • Can be a single item name or array of item names.

  • metadata?: table or string

    • If metadata is provided as a string it will search the item's metadata.type property.

Slots

Count

useSlot

displayMetadata

Deprecated Exports

OnPlayerLoad

Force the player's boot and inventory systems.

Lock/Unlock Inventory

ToggleHotBar

IsInventoryOpen

openInventory

Open a giving inventory

  • invType: string

    • 'player'

    • 'shop'

    • 'stash'

    • 'drop'

    • 'glovebox'

    • 'trunk'

  • id: number or string

  • data?: table

Examples

GetInventory

Get Player inventory data

CloseInventory

Close player inventory

HasItem

Check if player has item

GetItems

Return the server item list or specific one

Unarmed

Set player unarmed

SetCurrentWeapon

SetCurrentWeapon

SetShopEnabled

It only works with stores you have in your configuration and not those created at runtime.

Others

For either one, it will look for the closest player to execute the action.

Carry a near player

PiggyBack near player

ToggleDriftMode

If driftmode is enabled you can toggle it with export

Modules

sendModuleMessage

Send data to the module for manipulate later

createModule

Create the module including the correct actions to the script need to transform

removeModule

Remove the module

Progressbar

Action: exports.origen_inventory:progressBar(...)

Last updated