Skip to main content

Insert

Insert is a class used for inserting user-generated models into your game via scripts.


Summary

Methods


Methods

Model

Insert:Model(modelID: int, callback: func)

Parameters:

ParameterTypeDefaultDescription
modelIDint-
callbackfuncnil

Inserts the specified model ID into your game, with an optional callback for when the model successfully loads.

Example:

-- Loads the tree model associated with that ID
Insert:Model(739)