Rezox
Member
- Joined
- Apr 18, 2021
- Messages
- 310
- Reaction score
- 156,341
- Points
- 401
Hello vag world today I would like to share a very nice post with you;
If you want, you can download and install completely free of charge
If you want, you can download and install completely free of charge
Hidden link for visitors, to see
Log in or register now.
np-menu;Kod:
local antrenman = false
local dinlenme = false
RegisterNetEvent("yoga:yap")
AddEventHandler("yoga:yap", function()
if antrenman == false then
TriggerEvent('mythic_notify:client:SendAlert', { type = 'inform', text = 'Yoga yapmaya hazırlanıyorsun.'})
antrenman = true
local human = PlayerPedId()
Citizen.Wait(1000)
ExecuteCommand("e yoga")
FreezeEntityPosition(human, true)
local finished = exports["np-taskbar"]:taskBar(30000, "Yoga yapıyorsun")
if finished == 100 then
ClearPedTasksImmediately(human)
FreezeEntityPosition(human, false)
dinlenme = true
kontrolettir()
end
end
end)
function kontrolettir()
if dinlenme == true then
TriggerEvent('mythic_notify:client:SendAlert', { type = 'inform', text = 'Dinleniyorsun. 30 saniye sonra tekrar dene!'})
dinlenme = false
Citizen.Wait(30000)
antrenman = false
end
if dinlenme == false then
TriggerEvent('mythic_notify:client:SendAlert', { type = 'inform', text = 'Egsersiz yapmaya hazırsın.'})
end
end
{ -- <i class="fas fa-disease"></i>
id = "yogayap",
displayName = "Yoga Yap",
icon = "#yogayap",
functionName = 'yoga:yap',
enableMenu = function()
if Vdist2(GetEntityCoords(PlayerPedId()), -1219.59, -1546.26, 4.7455) <= 5 then
return true
end
end,
},