Module cl_peds

Ped Systems

Functions

CreatePed (id, modelHash, x, y, z, heading, bScriptHostPed, freeze, interaction, zone, text) CreatePed function.
FreezePed (id, state) FreezePed function.
GetPeds () GetPeds function.
GetPed (id) GetPed function.
DeletePed (id) DeletePed function.
DeleteAllPeds () DeleteAllPeds function.
PedGoToCoords (ped, coordsXorCoords, coordsY, coordsZ) PedGoToCoords function.
PedTurnToHeading (ped, heading, timeout) PedTurnToHeading function.
LoadPedClothes (charPed, data) LoadPedClothes function.
LoadAnimDict (dict) LoadAnimDict function.


Functions

CreatePed (id, modelHash, x, y, z, heading, bScriptHostPed, freeze, interaction, zone, text)
CreatePed function. This function creates a ped.

Parameters:

  • id The ped id. string
  • modelHash The ped model hash. string
  • x The ped x position. number
  • y The ped y position. number
  • z The ped z position. number
  • heading The ped heading. number
  • bScriptHostPed The ped script host. boolean
  • freeze The ped freeze. boolean
  • interaction The ped interaction. table
  • zone The ped zone. string
  • text The ped text. string

Returns:

    number

See also:

Usage:

    local ped = exports.jones_util:CreatePed("ped", "a_m_m_acult_01", 0, 0, 0, 0, false, true, {}, "zone", "Weapon Dealer")
FreezePed (id, state)
FreezePed function. This function freezes a ped.

Parameters:

  • id The ped id. string
  • state The ped state. boolean

Returns:

    nil

Usage:

    exports.jones_util:FreezePed(ped, true)
GetPeds ()
GetPeds function. This function returns all peds.

Returns:

    table

Usage:

    local peds = exports.jones_util:GetPeds()
GetPed (id)
GetPed function. This function returns a ped.

Parameters:

  • id The ped id. string

Returns:

    number

Usage:

    local ped = exports.jones_util:GetPed(ped)
DeletePed (id)
DeletePed function. This function deletes a ped.

Parameters:

  • id The ped id. string

Usage:

    exports.jones_util:DeletePed(ped)
DeleteAllPeds ()
DeleteAllPeds function. This function deletes all peds.

Usage:

    exports.jones_util:DeleteAllPeds()
PedGoToCoords (ped, coordsXorCoords, coordsY, coordsZ)
PedGoToCoords function. This function makes a ped go to a set of coordinates.

Parameters:

  • ped The ped id. number
  • coordsXorCoords The ped x position or the ped coordinates. number or vector3
  • coordsY The ped y position. number
  • coordsZ The ped z position. number

Usage:

    exports.jones_util:PedGoToCoords(ped, 0, 0, 0)
PedTurnToHeading (ped, heading, timeout)
PedTurnToHeading function. This function makes a ped turn to a heading.

Parameters:

  • ped The ped id. number
  • heading The ped heading. number
  • timeout The ped timeout. number

Usage:

    exports.jones_util:PedTurnToHeading(ped, 0, 1000)
LoadPedClothes (charPed, data)
LoadPedClothes function. This function loads a ped's clothes.

Parameters:

  • charPed The ped id. number
  • data The ped data. table

Usage:

    exports.jones_util:LoadPedClothes(ped, data)
LoadAnimDict (dict)
LoadAnimDict function. This function loads an animation dictionary.

Parameters:

  • dict The animation dictionary. string

Usage:

    exports.jones_util:LoadAnimDict("anim@heists@ornate_bank@hostages@hitman")
generated by LDoc 1.5.0 Last updated 2024-05-13 19:05:24