Client

OpenInventory


---@param inv string The inventory to open
---@param data table The data to pass to the inventory
---@return void
exports["bt-inventory"]:OpenInventory(type, data)

Below are the example inventories you can open with this function

exports["bt-inventory"]:OpenInventory("stash", {
    id = "hidden23442",
    maxWeight = 100000,
    slots = 50
})

CloseInventory


exports["bt-inventory"]:CloseInventory()

UseItem


UseSlot


UseSlot might be removed later as you can use a slot if you pass a number to UseItem

GetItemsByName


For example if a water_bottle item has a metaData of {"specialBottle": "yes"}. You can search it using this function using:

GetCurrentWeapon


Follows the same data structure as a regular item. The ammo is stored in metaData.ammo


GetBodySlot


SetBodyPartPercentage


You can use to set the color for the body parts. It will go more red the higher the level. No bleeding is 0 and max bleeding level is 100. Current body part names: leftArm, rightArm, rightLeg, leftLeg, head and body.

SetBodyPartInfo


The info is dynamic (only for the normal style, for the special style you can only use the values below). So you can attach any type of info you want to a body part. Example:

Last updated