28WL Posted August 10, 2014 Posted August 10, 2014 In 1.3 version all things were good, no errors and other shiat. Well, I have a very big problem at this moment - animations at the DayZ resource. When I eat something, an animation does not stop even... It just continues all the time and I don't know how to stop this animation by scripts. function addPlayerCookMeat() local playersource = source setPedAnimation(source, "BOMBER", "BOM_Plant", nil, false, false, nil, false) ...Too much important to share. ...Too much important to share. setTimer(function() ...Too much important to share. ...Too much important to share. ...Too much important to share. end, 5000, 1) triggerClientEvent(source, "refreshInventoryManual", source) end addEvent("addPlayerCookMeat", true) addEventHandler("addPlayerCookMeat", getRootElement(), addPlayerCookMeat) Please, write/share the script codes, which would stop an animation after it's finish (1 time). Thanks. You can hire me!
Moderators IIYAMA Posted August 10, 2014 Moderators Posted August 10, 2014 setPedAnimation(source,false) Do you want to improve your Lua programming skills and make less mistakes? Start with Lua Language Server! Useful functions 3x Spoiler checkPassiveTimer getScreenStartPositionFromBox getPedGender Tutorials 4x Spoiler Scaling DX Events Attach an addEventHandler on a group of elements Debugging
Et-win Posted August 10, 2014 Posted August 10, 2014 You could also read the wiki, then you knew it... ~Scripts~ Clan War System V1.2.0 ~Maps~ [DM]Et-win - The Run [FUN]Et-win - Drift Rocket [FUN]Et-win - Drift Rocket // [DD]Et-win - Cross 3xC
28WL Posted August 10, 2014 Author Posted August 10, 2014 Your messages does not help me at all ... I'm too fast, I already know it. function addPlayerCookMeat() local playersource = source setPedAnimation(source, "BOMBER", "BOM_Plant", nil, false, false, nil, false) ...Too much important to share. ...Too much important to share. setTimer(function() ...Too much important to share. ...Too much important to share. ...Too much important to share. end, 5000, 1) triggerClientEvent(source, "refreshInventoryManual", source) setPedAnimation(source, false) end addEvent("addPlayerCookMeat", true) addEventHandler("addPlayerCookMeat", getRootElement(), addPlayerCookMeat) All in all, dissappears an animation... So wtf? How I should make an animation to not be repeated???????? You can hire me!
Azfull Posted August 10, 2014 Posted August 10, 2014 Try this: function addPlayerCookMeat() local playersource = source setPedAnimation(source, "BOMBER", "BOM_Plant", -1, false, false, nil, false) ...Too much important to share. ...Too much important to share. setTimer(function() ...Too much important to share. ...Too much important to share. ...Too much important to share. end, 5000, 1) triggerClientEvent(source, "refreshInventoryManual", source) end addEvent("addPlayerCookMeat", true) addEventHandler("addPlayerCookMeat", getRootElement(), addPlayerCookMeat)
28WL Posted August 10, 2014 Author Posted August 10, 2014 I already investigated that by myself. Thanks anyway for your help, which is useless for me now at this time. setPedAnimation(source, "BOMBER", "BOM_Plant", -1, false, false, false, false)--It's good. You can hire me!
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now