Jump to content

ayuda


Nicolas ECM

Recommended Posts

Hi I have a resource in which a command runs an animation, when the animation ends I can not move, I and tried in various ways but do not know how please help

function createVcle(sourcePlayer, commandName, destroy) 
local x,y,z = getElementPosition(sourcePlayer) 
setPedAnimation ( sourcePlayer, "freeweights", "gym_free_pickup", 1000, false, false, false ) 
objeto = createObject( 897, x, y - 7, z + 0.3, 0, 90, 90) 
setTimer(destroyElement, 6000, 1, objeto) 
  
outputChatBox ( "Doton Doryu Joheki", sourcePlayer, 100, 100, 0) 
end 
addCommandHandler("doton",createVcle ) 
  
function stopanimacion (sourcePlayer) 
setPedAnimation (sourceplayer) 
end 
executeCommandHandler  (  doton, sourcePlayer) 

Link to comment
function createVcle ( sourcePlayer ) 
    local x, y, z = getElementPosition ( sourcePlayer ) 
    setPedAnimation ( sourcePlayer, "freeweights", "gym_free_pickup", 1000, false, false, false ) 
    objeto = createObject ( 897, x, y - 7, z + 0.3, 0, 90, 90 ) 
    setTimer ( 
        function ( ) 
            destroyElement ( objeto ) 
            objecto = nil 
            setPedAnimation ( sourcePlayer ) 
        end 
        ,6000, 1 
    ) 
    outputChatBox ( "Doton Doryu Joheki", sourcePlayer, 100, 100, 0 ) 
end 
addCommandHandler ( "doton", createVcle ) 

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...