how can i make it increase when there is an gunfight?
Hello, can shared?
Thanks!!
Great work!
didnt worked.
Bro, how can I do when you have like an item called ācigarā how can I do the animation of the Smoking on the item?
I donāt understand what you want to tell me
Look here at the forums - There are plenty of animation scripts you can choose to use, with an animation such as smoking.
Then, you could just make a check if itās the smoking emote, if it is, then this code gets triggered:
TriggerClientEvent (āesx_status: removeā, source, āstressā, 100000)
Hello! I am trying that when I reach 100% I make the depressed animation, but when you reach 0% the depressed animation is removed, I currently have the code to myself, the case is that when you reach 100% if you make the depressed animation , but when I have it at 0, keep doing the animation and there is no way to remove it, the only way is F3 and normal walking
It worksā¦ i run it on my serverā¦ do you have drunk in esx_basicneeds?
Mby itās not working for you because u donāt have a drunk stuff
can u share whole file ?? it would be awsome
You can try this code;
elseif stressVal <= 100000 then
ClearPedTask or StopAnimTask(ā¦anim detailā¦) etc.
but it may not be useful as stress walking is easily inactivated.
Could you replace the stamina bar with a streess bar?
possibly, if I finish it as I would like
Not ā>=ā you can try ā<=ā.
Itās only guess. Maybe work maybe not
That doesnt work I just tried
So i have a problem i have the stress working but i canāt remove the stress i have tried adding this TriggerClientEvent (āesx_status: removeā, source, āstressā, 100000) to my drug effect but when doing this it fails my drug script here is my effect i am doing.
onDrugs = true
TaskStartScenarioInPlace(playerPed, āWORLD_HUMAN_SMOKING_POTā, 0, 1)
TriggerClientEvent(āesx_status: removeā, source, āstressā, 100000)
Citizen.Wait(3000)
ClearPedTasksImmediately(playerPed)
SetTimecycleModifier(āspectator5ā)
SetPedMotionBlur(playerPed, true)
SetPedMovementClipset(playerPed, āmove_m@hurry_butch@aā, true)
local player = PlayerId()
AddArmourToPed(playerPed, 100)
local health = GetEntityHealth(playerPed)
local newHealth = math.min(maxHealth , math.floor(health + maxHealth/6))
SetEntityHealth(playerPed, newHealth)
onDrugs = false
Try this;
TriggerEvent(āesx_status: removeā, āstressā, 100000)
That did not work also