Sinespace Client 2025.3.19431
Client-side scripting for Sinespace
SineSpace.Scripting.Player.SInventoryItem Class Reference

Public Member Functions

bool StoreCustomData (string data)
 Whether store the customdata or not.
 
void Use ()
 Use the item but this only works on white label grids.
 
void Delete (int amount=1)
 Delete the item.
 

Properties

long MasterID [get]
 Return the itemID of the item.
 
long PlayerItemID [get]
 Return the PlayerItemID of the item.
 
string Name [get]
 Return the Name of the item.
 
string Description [get]
 Return the Description of the item.
 
string Brand [get]
 Return the Brand of the item.
 
string CustomData [get]
 Return the StoredDataString of the item.
 

Member Function Documentation

◆ Delete()

void SineSpace.Scripting.Player.SInventoryItem.Delete ( int amount = 1)

Delete the item.

local inventory=Space.Inventory
inventory.Authorize()
function Log()
local item=Space.Inventory.Items
item[1].Delete()
end
</example>
void Delete(int amount=1)
Delete the item.
Definition SInventoryItem.cs:200

◆ StoreCustomData()

bool SineSpace.Scripting.Player.SInventoryItem.StoreCustomData ( string data)

Whether store the customdata or not.

local inventory=Space.Inventory
inventory.Authorize()
function Log()
local item=Space.Inventory.Items
Space.Log(item[1].StoreCustomData("pz"))
end
</example>
bool StoreCustomData(string data)
Whether store the customdata or not.
Definition SInventoryItem.cs:141
Parameters
dataThe customization data

◆ Use()

void SineSpace.Scripting.Player.SInventoryItem.Use ( )

Use the item but this only works on white label grids.

local inventory=Space.Inventory
inventory.Authorize()
function Log()
local item=Space.Inventory.Items
item[1].Use()
end
</example>
void Use()
Use the item but this only works on white label grids.
Definition SInventoryItem.cs:172

Property Documentation

◆ Brand

string SineSpace.Scripting.Player.SInventoryItem.Brand
get

Return the Brand of the item.

local inventory=Space.Inventory
inventory.Authorize()
function Log()
local item=Space.Inventory.Items
Space.Log(item[1].Brand)
end
</example>
string Brand
Return the Brand of the item.
Definition SInventoryItem.cs:99

◆ CustomData

string SineSpace.Scripting.Player.SInventoryItem.CustomData
get

Return the StoredDataString of the item.

local inventory=Space.Inventory
inventory.Authorize()
function Log()
local item=Space.Inventory.Items
Space.Log(item[1].CustomData)
end
</example>
string CustomData
Return the StoredDataString of the item.
Definition SInventoryItem.cs:117

◆ Description

string SineSpace.Scripting.Player.SInventoryItem.Description
get

Return the Description of the item.

local inventory=Space.Inventory
inventory.Authorize()
function Log()
local item=Space.Inventory.Items
Space.Log(item[1].Description)
end
</example>
string Description
Return the Description of the item.
Definition SInventoryItem.cs:81

◆ MasterID

long SineSpace.Scripting.Player.SInventoryItem.MasterID
get

Return the itemID of the item.

local inventory=Space.Inventory
inventory.Authorize()
function Log()
local item=Space.Inventory.Items
Space.Log(item[1].MasterID)
end
</example>
long MasterID
Return the itemID of the item.
Definition SInventoryItem.cs:27

◆ Name

string SineSpace.Scripting.Player.SInventoryItem.Name
get

Return the Name of the item.

local inventory=Space.Inventory
inventory.Authorize()
function Log()
local item=Space.Inventory.Items
Space.Log(item[1].Name)
end
</example>
string Name
Return the Name of the item.
Definition SInventoryItem.cs:63

◆ PlayerItemID

long SineSpace.Scripting.Player.SInventoryItem.PlayerItemID
get

Return the PlayerItemID of the item.

local inventory=Space.Inventory
inventory.Authorize()
function Log()
local item=Space.Inventory.Items
Space.Log(item[1].PlayerItemID)
end
</example>
long PlayerItemID
Return the PlayerItemID of the item.
Definition SInventoryItem.cs:45