Create Fart.lua

This commit is contained in:
Manmadedrummer
2025-06-30 21:14:51 -04:00
committed by GitHub
parent b3a46cc06c
commit 7bd02d73e7

10
Fart.lua Normal file
View File

@@ -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)