getSoundSpeaker
Client
Returns the ped who speaks a sound.
ped|false getSoundSpeaker(sound sound)
Parameters
| Name | Type | Description |
|---|---|---|
| sound | sound | The sound element, or a dui element for the browser's sound. |
Returns
The ped or player, or false if nobody speaks the sound or the sound was not found.
Example
local speaker = getSoundSpeaker(line)
if speaker then
setSoundSpeaker(line, false)
endComing from MTANot in MTA.