Client
GetItemList
Return :
value | type |
---|---|
Item list | table |
Example
GetItemLabel
Return :
value | type |
---|---|
İtem label | string |
Parameters :
Name | Type | Description |
---|---|---|
item | string | Item spawn name |
Example
GetPlayerItems
Return :
value | type |
---|---|
player items | table |
Example
GetPlayerClotheItems
Return :
value | type |
---|---|
Player clothe items | table |
Example
HasItem
Return :
value | type |
---|---|
Player has the item | boolen |
Parameters :
Name | Type | Description |
---|---|---|
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
CloseInventory
SetInventoryActive
turns inventory usage off or on, when off, the player cannot open and use their inventory
ToggleHotbar
Parameters :
Name | Type | Description |
---|---|---|
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
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 :
Name | Type | Description |
---|---|---|
slot* | number | Slot number for fast slot bar(max 5) |
itemName* | string | item name |
Example
FastSlotRemoveItem
removes the item from the fast slot
Parameters :
Name | Type | Description |
---|---|---|
slot* | number | Slot number for fast slot bar(max 5) |
Example
FastSlotRemoveAllSlots
Removes all items in the fast slot
Last updated