SetPedAudioType

From Multi Theft Auto: Wiki
Revision as of 17:46, 30 November 2008 by Arc (talk | contribs) (New page: __NOTOC__ {{Client function}} Sets a ped's audio type. ==Syntax== <syntaxhighlight lang="lua">bool setPedAudioType ( ped thePed, string audio )</syntaxhighlight> ===Required Arguments=== *'''thePed:''' the ped whos...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Sets a ped's audio type.

Syntax

bool setPedAudioType ( ped thePed, string audio )

Required Arguments

  • thePed: the ped whose audio type to change.
  • audio: the name of the audio type to set. Possible values are:
    • PED_TYPE_GEN
    • PED_TYPE_EMG
    • PED_TYPE_PLAYER
    • PED_TYPE_GANG
    • PED_TYPE_GFD
    • PED_TYPE_SPC

Returns

Returns true if the voice type was set successfully, false otherwise.

See Also