Files
md-drugs/client/shrooms.lua
T

31 lines
989 B
Lua
Raw Normal View History

2026-03-05 00:00:34 -08:00
if not Config.Drugs['shrooms'] then return end
2025-09-05 21:28:04 -07:00
local function EcstasyEffect()
local startStamina = 50
SetFlash(0, 0, 500, 20000, 500)
while startStamina > 0 do
Wait(1000)
startStamina = startStamina - 1
RestorePlayerStamina(PlayerId(), 1.0)
if math.random(1, 100) < 51 then
SetFlash(0, 0, 500, 7000, 500)
ShakeGameplayCam('SMALL_EXPLOSION_SHAKE', 0.08)
end
end
if IsPedRunning(PlayerPedId()) then
SetPedToRagdoll(PlayerPedId(), math.random(1000, 3000), math.random(1000, 3000), 3, 0, 0, 0)
end
startStamina = 0
end
2024-01-13 22:23:17 -08:00
2026-01-18 01:20:44 -07:00
Bridge.Callback.Register("md-drugs:client:shrooms", function()
2026-01-21 21:27:08 -07:00
if not progressbar(Bridge.Language.Locale('shrooms.eat'), 5000, {
dict = 'mp_player_inteat@burger',
clip = 'mp_player_int_eat_burger',
flags = 49
}) then return end
2025-08-06 02:25:06 -06:00
CreateThread(function()
EcstasyEffect()
end)
return true
end)