From 7bd02d73e7be33215855b22425173259f3acbbb3 Mon Sep 17 00:00:00 2001 From: Manmadedrummer <140130825+Manmadedrummer@users.noreply.github.com> Date: Mon, 30 Jun 2025 21:14:51 -0400 Subject: [PATCH] Create Fart.lua --- Fart.lua | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 Fart.lua diff --git a/Fart.lua b/Fart.lua new file mode 100644 index 0000000..934757a --- /dev/null +++ b/Fart.lua @@ -0,0 +1,10 @@ +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)