Jump to content

[HELP] After 1.4 a lot of things changed!


28WL

Recommended Posts

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.

Link to comment

Your messages does not help me at all :D... 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????????

Link to comment

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) 

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...