Item
Server functions that are in some way related to the item aspects.
Wosa.Character.Inventory.Item.RemoveAllCustom(
user --[[ int ]]
)
--[[
Parameters:
-> user: The PlayerID of the user.
Description:
Removes all the custom items from the current selected character. Items such as
pocket cash, vanilla card etc will remain but "dropable" items will be deleted.
Used for when respawning for example when respawning.
]]Wosa.Character.Inventory.Item.Add(
user --[[ int ]],
inventoryTable --[[ string ]],
data --[[ table ]])
)
--[[
// Core Dev Notice: Should prolly remove "inventoryTable" and auto set it for less confusion.
Parameters:
-> user: The PlayerID of the user.
-> inventoryTable: The inventory table.
-> user: The PlayerID of the user.
Description:
Add a item to a users character.
Example:
data = {itemName = 'RI_EXAMPLE_ITEM', displayName = 'Example Item', Usable = true, Givable = true, Dropable = true, String1 = '', String2 = '', String3 = '', Bool1 = false, Bool2 = false, Bool3 = false, Int1 = 0, Int2 = 0, Int3 = 0, Float1 = 0.0, Float2 = 0.0, Float3 = 0.0 }
Wosa.Character.Inventory.Item.Add(user, inventoryTable, data)
]]Last updated
Was this helpful?