LogoLogo
Scripting DocsSupport
Scripting
Scripting
  • Sinespace Scripting Documentation
  • Client Scripting
    • Viewer
      • SDialogues
      • SInput
      • SShared
      • SUI
    • Network
      • SChat
      • SNetwork
      • SPhotos
      • SVideos
      • SWebService
    • Player
      • SEconomy
      • SGroup
      • SInventory
      • SProfile
      • SQuests
    • Region
      • SCameraManager
      • SGrid
      • SHost
      • SPersistence
      • SPhysics
      • SPostFX
      • SScene
      • SScript
      • SRenderSettings
    • Components
      • SAnimation
      • SAnimator
      • SAudioReactiveAnimation
      • SAudioReactiveBase
      • SAudioReactiveLight
      • SAudioReactiveMaterial
      • SAudioReactiveParticleSystem
      • SAudioReactiveTransform
      • SAudioSource
      • SBoxCollider
      • SBrowserSurface
      • SCamera
      • SCanvasGroup
      • SCapsuleCollider
      • SCharacterController
      • SClickable
      • SCloth
      • SCollider
      • SContentSizeFitter
      • SEmbeddedVideo
      • SEventCalendar
      • SFurniture
      • SGraphicRaycaster
      • SHingeJoint
      • SLight
      • SLineRenderer
      • SMeshRenderer
      • SModularVehicle
      • SNavMeshAgent
      • SNavMeshObstacle
      • SNetworking
      • SParticleSystem
      • SPlayableDirector
      • SPostProcessVolume
      • SRectTransform
      • SReflectionProbe
      • SRenderer
      • SRigidbody
      • SRoomFloor
      • SSceneBackgroundMusic
      • SScriptingData
      • SScriptingEvents
      • SScriptingResources
      • SScriptingRuntime
      • SSeat
      • SSkinnedMeshRenderer
      • SSphereCollider
      • SStateMachine
      • STerrain
      • STrailRenderer
      • SUIButton
      • SUICanvas
      • SUIDropdown
      • SUIImage
      • SUIInputField
      • SUILayout
      • SUIRawImage
      • SUIScrollbar
      • SUISlider
      • SUIText
      • SUIToggle
      • SUIToolTipHint
      • SVirtualCamera
      • SVoiceZone
    • Types
      • SAnimationState
      • SAnimatorStateInfo
      • SAvatar
      • SAvatarAppearance
      • SChatMessage
      • SColor
      • SCommandBuffer
      • SDateTime
      • SGameObject
      • SGenre
      • SGroupInfo
      • SInventoryItem
      • SJointLimits
      • SJointMotor
      • SJointSpring
      • SLandmark
      • SLayerMask
      • SMaterial
      • SMath
      • SMusicDirectory
      • SMusicStation
      • SMusicStationList
      • SNetworkMessageLua
      • SOutfit
      • SParticle
      • SPhysicsHit
      • SPublicRegion
      • SQuaternion
      • SRay
      • SRect
      • SResource
      • SScore
      • SScoreRank
      • SString
      • SSubRegion
      • STrackInfo
      • STuneIn
      • SUIRaycastResult
      • SUserRegions
      • SVector
      • SUserProfile
      • SSocialMedia
      • SWebResponse
  • Server Scripting
    • Library
      • SMath
    • Network
      • SShared
      • SWebservice
    • Region
      • SAvatar
      • SCell
      • SObject
      • SParcel
      • SParcelManager
      • SRegionScript
      • SScene
    • Storage
      • SDatabase
  • Guides
    • Persistence
    • Server Scripts
  • Sample Projects
    • Smart Lights
    • Trivia Box
  • Changelog
    • API Changelog
  • Support
    • Report An Issue
Powered by GitBook

Sinespace® is a registered trademark of Sine Wave Entertainment Ltd, All Rights Reserved.

On this page
  • Index
  • Functions Index
  • Properties Index
  • Functions
  • StoreCustomData
  • Use
  • Delete
  • Properties
  • MasterID
  • PlayerItemID
  • Name
  • Description
  • Brand
  • CustomData

Was this helpful?

Export as PDF
  1. Client Scripting
  2. Types

SInventoryItem

Index

Functions Index

Function Name

Properties Index

Property Name

Functions

StoreCustomData

bool StoreCustomData (string data)

Updates the inventory items custom data, and requests a synchronisation with the inventory server. It may not update on the server immediately, but all local calls will reflect the new data. Note: this request can be rate limited and should only be called from a user initiated action (such as clicking a button). Updates to custom data must not be initiated on a timer or regular automatic event. Access to this function can be blacklisted to specific creators if abused.

Parameter
Type
Description

Items = Space.Inventory.Items
Items[1].StoreCustomData('data1data2data3')

Use

void Use ()

Player will 'Use' this item. (White-label only)

Items = Space.Inventory.Items
Items[1].Use() 

Delete

void Delete ()

Player will 'Delete' this item. (White-label only)

Items = Space.Inventory.Items
Items[1].Delete()

Properties

MasterID

long MasterID get

The master ID for this item - also known as the Curator ID or Item ID, this is the ID for the master item from which this copy exists.

Items = Space.Inventory.Items
iMasterID = Items[1].MasterID

PlayerItemID

long PlayerItemID get

The instance ID for this item - this is guaranteed to be unique per inventory item

Items = Space.Inventory.Items
iPlayerItemID= Items[1].PlayerItemID

Name

string Name get

Returns the name of the inventory item

Items = Space.Inventory.Items
iName= Items[1].Name

Description

string Description get

Returns the registered description of the inventory item in the users locale

Items = Space.Inventory.Items
iDescription=Items[1].Description

Brand

string Brand get

Returns brand information about the item

Items = Space.Inventory.Items
iBrand = Items[1].Brand

CustomData

string CustomData get

Returns any custom data associated with this item, typically used for 'game' items

Items = Space.Inventory.Items
iCustomData = Items[1].CustomData
PreviousSGroupInfoNextSJointLimits

Last updated 2 years ago

Was this helpful?

bool (string data)

void ()

void ()

long get

long get

string get

string get

string get

string get

StoreCustomData
Use
Delete
MasterID
PlayerItemID
Name
Description
Brand
CustomData