Client
GetItemList | Items
Optionally takes the name of an item, returning only data for that item
itemName?
string
Return :
Item list or Item Data
table
Example
GetItemLabel
Return :
İtem label
string
Parameters :
item
string
Item spawn name
Example
GetPlayerItems
Return :
player items
table
Example
GetPlayerClotheItems
Return :
Player clothe items
table
Example
GetCarryItemData
Return :
Data of the item the player is carrying
table or false
Example
IsCarryingItem
Return :
Does the player carry things in his hand?
boolen
Example
HasItem
Return :
Player has the item
boolen
Parameters :
items*
table or string
The items to check, either a string, array of strings or a key-value table of a string and number with the string representing the name of the item and the number representing the amount
amount
int
The amount of the item to check for, this will only have effect when items is a string or an array of strings
Example
OpenInventory
Same function as the F2(default) key
Parameters :
invType
string
glovebox | trunk | stash | shop | drop | crafting | otherplayer
invId
string | number
playerid | name | plate
invData
table | null
{ maxweight?: number, slots?: number, whitelist?: table, blacklist?: table, label?:string}
openType
table | null
{ isPlayer?: boolen, isFamily?: boolen, password?: string}
Examples :
CloseInventory
SetInventoryActive
turns inventory usage off or on, when off, the player cannot open and use their inventory
ToggleHotbar
Parameters :
isOpen*
boolen
Opens the hotbar if true, closes it if false
Example
SetCanUseItem
turns off or on item usage in inventory, Player can't use items in their inventory when closed
IsInventoryActive
Returns the value modified with SetInventoryActive
LastWeaponData
Returns the weapon in his hand and all weapons he uses within 30 seconds
ResetWeaponDataForDrop
Within 30 seconds, resets the data of all weapons used
GetCurrentWeapon | getCurrentWeapon | LastWeaponData
Get data for the currently equipped weapon
FastSlotAddItem
adds items to the fast slot. remember, if there is no item in your inventory, you cannot use the item in the fast slot
Parameters :
slot*
number
Slot number for fast slot bar(max 5)
itemName*
string
item name
Example
FastSlotRemoveItem
removes the item from the fast slot
Parameters :
slot*
number
Slot number for fast slot bar(max 5)
Example
FastSlotRemoveAllSlots
Removes all items in the fast slot
Search
Searches the inventory for an item, or list of items, with the result varying based on the first argument.
Parameters :
search
string
slots | count
item
string
Item name
metadata?
table
Item metadata for search
Example
GetItemCount
Get the total item count for all items in the player's inventory with the given name and metadata.
Parameters :
itemName
string
Item name
metadata?
table
Item metadata for search
strict
boolean
Strictly match metadata properties, otherwise use partial matching.
Return
count
number
GetPlayerWeight
Get the total weight of all items in the player's inventory.
Return
totalWeight
number
GetPlayerMaxWeight
Get the total weight of all items in the player's inventory.
Return
maxWeight
number
GetItemByName | GetSlotWithItem
Get data for a slot in the player's inventory matching the given name and metadata.
Parameters :
itemName
string
Item name
metadata?
table
Item metadata for search
strict
boolean
Strictly match metadata properties, otherwise use partial matching.
Return
itemData
table
GetItemsByName | GetSlotsWithItem
Get data for a slot in the player's inventory matching the given name and metadata.
Parameters :
itemName
string
Item name
metadata?
table
Item metadata for search
strict
boolean
Strictly match metadata properties, otherwise use partial matching.
Return
itemsData
table
GetSlotIdWithItem
Get a slot id in the player's inventory matching the given name and metadata.
Parameters :
itemName
string
Item name
metadata?
table
Item metadata for search
strict
boolean
Strictly match metadata properties, otherwise use partial matching.
Return
slotNumber
number
GetSlotIdsWithItem
Get all slot ids in the player's inventory matching the given name and metadata.
Parameters :
itemName
string
Item name
metadata?
table
Item metadata for search
strict
boolean
Strictly match metadata properties, otherwise use partial matching.
Return
slotsNumber
table
UseSlot | useSlot
Uses the item in the given inventory slot.
Parameters :
slot
number
Slot number (1-5)
GiveItemToTarget | giveItemToTarget
Uses the item in the given inventory slot.
Parameters :
serverId
number
Target player server id
slotId
number
Slot id
count
number
The amount of the item to give
Last updated