Search the Community
Showing results for tags 'setpedanimation'.
-
I am creating a new weapon, and is in the aiming phase, but I would like to set the aiming position for the player, that createWeapon ("m4", 0, 0, 0) would aim where the player is aiming, and that the animation set by me [setPedAnimation (getLocalPlayer (), "shop", "shp_gun_aim", -1, true, true, false, false, 250, true)] aimed where the player looks while holding the right mouse button, How can I do it? By the way, I would like to ask if it is possible for the player not to hit when the animation is on?
-
setpedanimation setPedAnimation? Como voltar ao normal!
koringaplay posted a topic in Programação em Lua
setPedAnimation(v, "bar", "dnk_stndf_loop", 1000, false, true, true) Como eu faço para depois dessa animação acabar o CJ voltar ao normal? Já usei: setPedAnimation(source) Não funciona. -
Estou querendo fazer com que o player inicie uma animação e ele fique congelado. Isso foi o que eu fiz: function anim (player) local animation = setPedAnimation (player, "int_house", "wash_up", 10000, true, false, false, false) if animation then setElementFrozen (player, true) setTimer (setElementFrozen, 10000, 1, player, false) end end addEventHandler ("onMarkerHit", m1, anim)
-
Hello Guys. I have a problem and I tried many hours to fix it but I didn't get it...maybe u guys can help me out?! As u can see I wanted to use an animation when a player is in front of a sprunk-o-mat.... I wanted to hold the player for 5 seconds to make the job done(repair it)...but players are currently able to stop the animation by pressing 'LShift' I tried "setElementFrozen" but it didn't work and toggleControls(player,"jump",false) wasn't a solution as well. Any ideas? Thanks for your help! function moneymarker(hitPlayer, matchingDimension ) if isElementWithinMarker(hitPlayer,
- 8 replies
-
- setpedanimation
- stops
-
(and 1 more)
Tagged with:
-
--Creating the ped drugDealer = createPed( 121, 2486, -1650.9, 13.5, 90.762) function startWalking() setPedAnimation( drugDealer, "ped", "WALK_gang1", 10000, true, true, false) setPedAnimation( drugDealer, "ped", "WALK_gang2", 10000, true, true, false) end Help. When I run this script I would the ped walk for ten seconds then change his walk style to gang2 after it, but it just run the second animation, please help on this.
- 3 replies
-
- setpedanimation
- animation
-
(and 1 more)
Tagged with:
-
Olá. Estou fazendo um script em que o jogador faz uma animação quando digita um comando, script simples. Ele senta normalmente sem nenhum erro, porém quando eu aperto o botão de pular (Left Shift ou Right Ctrl) o personagem cancela a animação, mesmo eu tendo colocado como false no parâmetro de interruptable na animação. Segue parte do script. function commandSitDown (source) setPedAnimation (source, "ped", "seat_down", -1, false, false, false, true) outputChatBox ("Você está sentado, para levantar use #FFFF00/levantar.", source, 255, 255, 255, true) end addCommandHandler ("sent