[Release] Infinite Stamina

Yeah, the title pretty much just explains everything. You’ll have infinite stamina.

Just extract it into your resources folder and put it into your citmp-server.yml file like pretty much every resource.

stamina.zip (new version, didn’t test this one though.)

stamina.zip (old version, obviously broken because of a dumb mistake, why do i still even have this here?)
VirusTotal scan

Citizen.CreateThread( function()
 while true do
    Citizen.Wait(0)
    RestorePlayerStamina(PlayerId(), 1.0)
	end
end)

here’s the code if you don’t want to download the file.

11 Likes

Thanks for the script, works fine when on foot. But holding a weapon = doesnt work. Not too much of a biggy though :wink:

The problem is . when another player join he doesn’t restore the stamina.it’s only work for the first person who connected

to fix this

use PlayerId()

2 Likes

To fix:

Citizen.CreateThread( function()
 while true do
    Citizen.Wait(1)
    RestorePlayerStamina(PlayerId(), 1.0)
	-- it's that simple
	end
end)
3 Likes

If only all the scripthook disabled servers used this. I’ll be telling everyone about this. Thanks :slight_smile:

Is it possible to make only some npc have unlimited stamina?

Citizen.CreateThread( function()
	while true do
		Citizen.Wait(500)
		ResetPlayerStamina(PlayerId())
	end
end)
1 Like

how can i make to when i run, my character will lose some hp like in singleplayer

2 Likes

for that you need to disable unlimited stamina

1 Like

i installed this script to my server but i still didnt have infinite stamina

2 Likes

same…

This is working!

Citizen.CreateThread( function()
while true do
Citizen.Wait(500)
ResetPlayerStamina(PlayerId())
end
end)

5 Likes

where does the file go in instead of the resource

1 Like

I want my stamina to decrease while running and jumping. what to do

does anyone know how to fix it where I can roll constant

where do i put
the code in ?? server cfg?

in a client-sided loop

you add this to your client side guys so like in your huds and stuff works for me

what is client side? i dnt understand