I like that
You can use IsPedInAnyVehicle(player, true) == false or for this specific example you can just replace it with this
if ( DoesEntityExist( player ) and not IsEntityDead( player ) and not IsPedInAnyVehicle(player, true) ) then
The other natives you want all work the same way: IsEntityInWater, IsPedSwimming, IsPedSwimmingUnderWater, IsPedClimbing, use the FiveM Native Website and select LUA for more examples on how to use the natives they are super simple.
@CesarKG You can use the IsPedArmed native to prevent an animation from being activated, but in order to block shooting after they enable the animation you’d need to setup a true loop on the client side, something like isAnimated = true and then while isAnimated do
Citizen.CreateThread(function()
while true do
Citizen.Wait(1)
if isAnimated then
DisableControlAction(0,37,true) -- disable TAB
DisableControlAction(0,24,true) -- disable attack
DisableControlAction(0,47,true) -- disable weapon
DisableControlAction(0,58,true) -- disable weapon
DisableControlAction(0,263,true) -- disable melee
DisableControlAction(0,264,true) -- disable melee
DisableControlAction(0,257,true) -- disable melee
DisableControlAction(0,140,true) -- disable melee
DisableControlAction(0,141,true) -- disable melee
DisableControlAction(0,142,true) -- disable melee
DisableControlAction(0,143,true) -- disable melee
end
end
end)
Something like that should work
Another useless animation script download
You’re always welcome to have an opinion but it’s been out for a year and this isn’t your typical animation script. It’s meant to be used as an all in one prop spawner, scenario, animation, walk style, and really anything else you want on it. It’s currently used on 100+ servers right now and has nearly 7000 downloads. If you need an example of useless it’s your comment.
I just changed the key to a bind that is not used on neither keyboard or controller
i have a problem , when i use other script to put handsup i cant move the camera when i do the animation ,any idea to fix it?
How to can find the
*-- Press U for police radio animation
*-- Press H to put your hands up
*-- Press K to place hand on holster
in the client.lua
is there any flower animation?
What do you mean exactly? I added at least 100 extra animations to this one. I can give you the line for one where the player holds a rose, if that’s what you mean.
Do any of you guys have the list of props/propbone numbers? I’ve been digging for a while and cannot find one. I wanted to add a donut/burger or something to the eat animation.
Here mate, this might help
do you have a line for the texting and walking?
How do you even download this?
Amazing work. Really.
Any chance to release this to RedM ?
I mean, Red Dead Redemption 2.
Would be amazing to use this on my server.
@TrundleTheGreat What do I do to the code to make a key bind do a different animation. For example, I’m trying to make my key bind do the animation Copidle. If possible can you do this for me? I love the script thankyou for making this.
Hello, I am having a hard time adding custom animations. Could someone help me further than what is explained in the config file or is there a tutorial video that anyone know of?