get tray instance||doc135685

September 20, 2022

Format

 EntityTrays:fetch_tray(tid) 

Description

Returns the tray instance based on the tray Id.


Parameters

Variable name type Description
tid int tray id


Value Returned

type Description
tray knapsack instance


Code Samples

On the server side of the entity templatemount script, get the tray instance whose tray id is 1

local entityTrays = this:tray()                        
local tray = entityTrays:fetch_tray(1)