Module sv_peds

Ped System

Functions

CreatePed (id, modelHash, x, y, z, heading, bScriptHostPed, freeze) CreatePed function.
CreateClientPed (src, id, modelHash, x, y, z, heading, bScriptHostPed, freeze, interaction, zone) CreateClientPed function.
FreezePed (id, boolean) FreezePed function.
FreezeClientPed (src, id, boolean) FreezeClientPed function.
DeletePed (id) DeletePed function.
DeleteClientPed (src, id) DeleteClientPed function.
DeleteAllPeds () DeleteAllPeds function.


Functions

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

Parameters:

  • id The ped id.
  • modelHash The ped model hash.
  • x The ped's x coordinate.
  • y The ped's y coordinate.
  • z The ped's z coordinate.
  • heading The ped's heading.
  • bScriptHostPed The ped's script host.
  • freeze The ped's freeze state.

Returns:

    number

Usage:

    local pedId = exports.jones_util:CreatePed(1, "a_m_m_acult_01", 0, 0, 0, 0, false, false)
CreateClientPed (src, id, modelHash, x, y, z, heading, bScriptHostPed, freeze, interaction, zone)
CreateClientPed function. This function creates a client sided ped.

Parameters:

  • src The player's server id.
  • id The ped id.
  • modelHash The ped model hash.
  • x The ped's x coordinate.
  • y The ped's y coordinate.
  • z The ped's z coordinate.
  • heading The ped's heading.
  • bScriptHostPed The ped's script host.
  • freeze The ped's freeze state.
  • interaction The ped's interaction table.
  • zone The ped's zone.

Usage:

    exports.jones_util:CreateClientPed(src, 1, "a_m_m_acult_01", 0, 0, 0, 0, false, false, {}, "zone")
FreezePed (id, boolean)
FreezePed function. This function freezes a ped.

Parameters:

  • id The ped id.
  • boolean The ped's freeze state.

Usage:

    exports.jones_util:FreezePed(1, true)
FreezeClientPed (src, id, boolean)
FreezeClientPed function. This function freezes a client sided ped.

Parameters:

  • src The player's server id.
  • id The ped id.
  • boolean The ped's freeze state.

Usage:

    exports.jones_util:FreezeClientPed(src, 1, true)
DeletePed (id)
DeletePed function. This function deletes a ped.

Parameters:

  • id The ped id.

Usage:

    exports.jones_util:DeletePed(1)
DeleteClientPed (src, id)
DeleteClientPed function. This function deletes a client sided ped.

Parameters:

  • src The player's server id.
  • id The ped id.

Usage:

    exports.jones_util:DeleteClientPed(src, 1)
DeleteAllPeds ()
DeleteAllPeds function. This function deletes all peds.

Usage:

    exports.jones_util:DeleteAllPeds()
generated by LDoc 1.5.0 Last updated 2024-05-13 19:05:24