getPedVoice | Multi Theft Auto: Wiki Skip to content

getPedVoice

Client-side
Server-side
Shared

This page is incomplete! Help wanted!

Please finish this page using the corresponding Old Wiki article.
Go to Contribution guidelines for more information.


Gets the current voice of a ped.

Syntax

getPedVoice ( )

Code Examples

client
addCommandHandler ( "getvoice",
function ()
local voicetype, voicename = getPedVoice(localPlayer)
outputChatBox ( "Your ped voice type is " .. tostring(voicetype) .. " and voice name is ".. tostring(voicename).."." )
end
)

See Also