Hey guys,
Very simple script which recognizes that you are an animal and gives you infinite stamina.
It is based off of Vmenu and should be little less heavy on resources.
local IsAnimal = false
CreateThread(function()
Citizen.Wait(0)
while true do
Citizen.Wait(1000)
local player = GetPlayerPed(-1)
if IsPedHuman(player) == false and not IsAnimal then
ShowNotification("Animal Ped Detected")
ShowNotification("Infinite Stamina: Enabled")
IsAnimal = true
StatSetInt(GetHashKey("MP0_STAMINA"), 100, true)
elseif IsPedHuman(player) == 1 and IsAnimal then
ShowNotification("Infinite Stamina: Disabled")
IsAnimal = false
StatSetInt(GetHashKey("MP0_STAMINA"), 0, true)
end
end
end)
function ShowNotification( text )
SetNotificationTextEntry( "STRING" )
AddTextComponentString( text )
DrawNotification( false, false )
end
AnimalStamina.rar (724 Bytes)