⚙️
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
  • EnablePed
  • DisablePed
  • CreateInteractionPed
  • GetCreatedPed
  1. TMC Core Object
  2. Client Functions

Interaction Ped Functions

Register core managed ped, remember, these are client-sided.

EnablePed

Enable an interaction ped, allowing the ped to spawn and spawning the current ped if close enough

Parameter
Required
Type
Description

pedKey

String

Unique reference for the ped

TMC.Functions.EnablePed("example_ped")

DisablePed

Disable an interaction ped, stopping the ped from spawning and removing the current ped if close enough

Parameter
Required
Type
Description

pedKey

String

Unique reference for the ped

TMC.Functions.DisablePed("example_ped")

CreateInteractionPed

Create a static ped managed via the core functions, you are only able to create fixed peds through this.

Parameter
Required
Type
Description

pedKey

String

Unique reference for the ped

pedOptions

Object

Options to spawn the ped with

TMC.Functions.CreateInteractionPed("example_ped", {
    Hash = GetHashKey("a_m_y_smartcaspat_01"),
    Location = vector4(0.0, 0.0, 0.0, 0.0),
    Scenario = "WORLD_HUMAN_CLIPBOARD",
})

GetCreatedPed

Get ped information based on key

Parameter
Required
Type
Description

pedKey

String

Unique reference for the ped

TMC.Functions.GetCreatedPed("example_ped")
PreviousVehicle FunctionsNextInteraction Object Functions

Last updated 8 months ago