๐ฅ๏ธ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)exports.origen_inventory:openInventory('shop', 'test')exports.origen_inventory:openInventory('stash', 'my-stash', {
label = 'My Stash'
})
--- Or Simply
exports.origen_inventory:openInventory('stash', 'my-stash')exports.origen_inventory:openInventory('trunk', 'my-stash', {
label = 'My Trunk'
})
--- Or Simply
exports.origen_inventory:openInventory('glovebox', 'my-glove')Search
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:
tableorstringCan be a single item name or array of item names.
metadata?:
tableorstringIf metadata is provided as a string it will search the item's
metadata.typeproperty.
Slots
Count
useSlot
displayMetadata
Deprecated Exports
These exports continue to function as long as they are on this list, please prioritize replacing with new exports.
Support for these exports is a lower priority, you can request new exports on our support discord.
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:
numberorstringdata?:
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
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