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")

Last updated