mirror of
https://github.com/araxiaonline/Fart.git
synced 2026-06-13 03:02:24 -04:00
11 lines
314 B
Lua
11 lines
314 B
Lua
local FART_EMOTE_ID = 39
|
|
local SOUND_ID = 70500 -- Your custom sound entry ID
|
|
|
|
local function OnTextEmote(event, player, textEmote, emoteNum, guid)
|
|
if textEmote == FART_EMOTE_ID then
|
|
player:PlayDirectSound(SOUND_ID) -- Everyone nearby hears the fart
|
|
end
|
|
end
|
|
|
|
RegisterPlayerEvent(24, OnTextEmote)
|