Added item.removed to docs and fixed some minor things

This commit is contained in:
EvilFactory
2023-04-11 12:34:15 -03:00
parent d0519cb982
commit f2a3c38c79
3 changed files with 7 additions and 3 deletions

View File

@@ -29,7 +29,7 @@ function Kick(reason) end
function Ban(reason, range, seconds) end
--- Checks permissions, Client.Permissions.
-- @realm server
-- @realm shared
function CheckPermission(permissions) end
--- Unban a client.

View File

@@ -12,11 +12,11 @@ Item = {}
--- Gets a component from an item by a string name.
-- @treturn Component component
-- @realm server
-- @realm shared
function GetComponentString(componentName) end
--- Sends a signal.
-- @realm server
-- @realm shared
function SendSignal(signalOrString, connectionOrConnectionName) end
---

View File

@@ -227,6 +227,10 @@ function item.deconstructed(item, otherItem, userCharacter) end
-- @realm shared
function item.created(item) end
--- Gets called every time an item is removed.
-- @realm shared
function item.removed(item) end
--- Gets called every time an item is moved from one inventory slot to another, return true to cancel
-- @realm shared
function inventoryPutItem(inventory, item, characterUser, index, removeItemBool) end