Interaction Object Functions
Register core managed objects, remember, these are client-sided.
EnableObject
Enable an interaction object, allowing the object to spawn and spawning the current object if close enough
Parameter
Required
Type
Description
objectKey
String
Unique reference for the object
TMC.Functions.EnableObject("example_object")
DisableObject
Disable an interaction object, stopping the object from spawning and removing the current object if close enough
Parameter
Required
Type
Description
objectKey
String
Unique reference for the object
TMC.Functions.DisableObject("example_object")
CreateInteractionObject
Create and register an interaction object
Parameter
Required
Type
Description
objectKey
String
Unique reference for the object
objectOptions
Object
Options to spawn the object with
TMC.Functions.CreateInteractionObject("example_object", {
Model = GetHashKey("prop_mp_cone_01"),
Location = vector4(0.0, 0.0, 0.0, 0.0)
})
GetCreatedObject
Get object information based on key
Parameter
Required
Type
Description
objectdKey
String
Unique reference for the object
TMC.Functions.GetCreatedObject("example_object")
Last updated