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
+1 -1
View File
@@ -29,7 +29,7 @@ function Kick(reason) end
function Ban(reason, range, seconds) end function Ban(reason, range, seconds) end
--- Checks permissions, Client.Permissions. --- Checks permissions, Client.Permissions.
-- @realm server -- @realm shared
function CheckPermission(permissions) end function CheckPermission(permissions) end
--- Unban a client. --- Unban a client.
+2 -2
View File
@@ -12,11 +12,11 @@ Item = {}
--- Gets a component from an item by a string name. --- Gets a component from an item by a string name.
-- @treturn Component component -- @treturn Component component
-- @realm server -- @realm shared
function GetComponentString(componentName) end function GetComponentString(componentName) end
--- Sends a signal. --- Sends a signal.
-- @realm server -- @realm shared
function SendSignal(signalOrString, connectionOrConnectionName) end function SendSignal(signalOrString, connectionOrConnectionName) end
--- ---
+4
View File
@@ -227,6 +227,10 @@ function item.deconstructed(item, otherItem, userCharacter) end
-- @realm shared -- @realm shared
function item.created(item) end 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 --- Gets called every time an item is moved from one inventory slot to another, return true to cancel
-- @realm shared -- @realm shared
function inventoryPutItem(inventory, item, characterUser, index, removeItemBool) end function inventoryPutItem(inventory, item, characterUser, index, removeItemBool) end