βοΈExports & Events
Open Inventory Exports
Clientside Export: openInventory
openInventoryDescription: Opens the inventory of the player.
Clientside Export: openTrunk
openTrunkDescription: Opens the trunk or glovebox of the nearest car.
Vehicle Inventory Functions
Export: vehicleInventoryAddItem
vehicleInventoryAddItemDescription: Adds an item to a vehicle's trunk or glovebox.
Parameters:
plate(string): The plate of the vehicle.type(string): Either"trunk"or"glovebox".itemname(string): The name of the item to add.count(number): The amount of the item to add.
Export: vehicleInventoryRemoveItem
vehicleInventoryRemoveItemDescription: Removes an item from a vehicle's trunk or glovebox.
Parameters:
plate(string): The plate of the vehicle.type(string): Either"trunk"or"glovebox".itemname(string): The name of the item to remove.count(number): The amount of the item to remove.
Job Storage Functions
Export: jobInventoryAddItem
jobInventoryAddItemDescription: Adds an item to a job-specific storage.
Parameters:
jobname(string): The name of the job which owns the inventory.itemname(string): The name of the item to add.count(number): The amount of the item to add.
Export: jobInventoryRemoveItem
jobInventoryRemoveItemDescription: Removes an item from a job-specific storage.
Parameters:
jobname(string): The name of the job which owns the inventory.itemname(string): The name of the item to remove.count(number): The amount of the item to remove.
External Storage (Stash) Functions
Export: externalInventoryOpen
externalInventoryOpen Event: hc_inventory:openExternalStash
Description: Opens an external stash inventory, intended for systems outside of player or vehicle inventories.
Parameters:
source(player): Player ID to open the inventory for.uniqueid(string): A unique identifier for this stash.data(table): Configuration table with:title(string): Title of the inventory.maxweight(number): Maximum allowed weight.slots(number): Maximum number of slots.
Export: externalInventoryAddItem
externalInventoryAddItemDescription: Adds an item to an external stash.
Parameters:
uniqueid(string): A unique identifier for the stash.itemname(string): The name of the item to add.count(number): The amount of the item to add.
Export: externalInventoryRemoveItem
externalInventoryRemoveItemDescription: Removes an item from an external stash.
Parameters:
uniqueid(string): A unique identifier for the stash.itemname(string): The name of the item to remove.count(number): The amount of the item to remove.
Frisk / search players
Clientside Export: friskPlayer
friskPlayerDescription: Opens the inventory of another player as second inventory. Allows the player to take items from the other player.
Parameters:
source(player): Local Player ID to open the inventory for.
Last updated