1
0
Fork 0
forked from Simnation/Main
Main/resources/[Developer]/[Max]/Duck_Troll/client.lua
Max e689cd0ce3 resources/[Developer]/[Max]/Duck_Troll/client.lua aktualisiert
Model geändert

Signed-off-by: Max <max@evolution-state-life.de>
2025-08-17 19:12:38 +02:00

33 lines
897 B
Lua
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

RegisterNetEvent("troll:verwandelnZurRatte", function()
local ratModel = GetHashKey("a_c_sharktiger")
local defaultModel = GetHashKey("mp_m_freemode_01")
-- Rattenmodell laden
RequestModel(ratModel)
while not HasModelLoaded(ratModel) do Wait(50) end
SetPlayerModel(PlayerId(), ratModel)
SetModelAsNoLongerNeeded(ratModel)
lib.notify({
title = 'Troll aktiv',
description = 'Du bist jetzt eine Ratte 🐀 für 60 Sekunden!',
type = 'inform'
})
-- 60 Sekunden warten
Wait(60000)
-- Zurückverwandeln
RequestModel(defaultModel)
while not HasModelLoaded(defaultModel) do Wait(50) end
SetPlayerModel(PlayerId(), defaultModel)
SetModelAsNoLongerNeeded(defaultModel)
lib.notify({
title = 'Zurückverwandelt',
description = 'Du bist wieder normal.',
type = 'success'
})
end)