⚙️
TMC v2 Core
DiscordWebsite
  • Get Started
  • TMC Core Object
    • Client Functions
      • Vehicle Functions
      • Interaction Ped Functions
      • Interaction Object Functions
      • Interaction Prompts
      • Polyzones
    • Client Menus
    • Events
      • Client
      • Server
    • Server Functions
      • General Functions
      • Commands
      • Player Functions
    • Common Functions
    • 🚘Vehicle Names
  • Object Models
    • Job
  • 📄Other Resources
    • ✨Status Effects
    • 📤Dispatch
    • 🫂Parties
    • 💶Banking
    • 🔍Evidence
Powered by GitBook
On this page
  • EnableObject
  • DisableObject
  • CreateInteractionObject
  • GetCreatedObject
  1. TMC Core Object
  2. Client Functions

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")
PreviousInteraction Ped FunctionsNextInteraction Prompts

Last updated 8 months ago