Jump to content

[SOLVED] Can't set animation to Ped


HeK

Recommended Posts

I have been trying a lot of coding from the wiki and no success. I wanna set an "DEALER_IDLE" animation to the ped but no success, he just stands there.

function weapondealer1() 
    weapondealer1 = createPed ( 28, 1604.3000488281, -1721.0999755859, 6.3000001907349 ) 
    setPedAnimation ( weapondealer1, "DEALER", "DEALER_IDLE" ) 
    end 
     
addEventHandler ("onResourceStart", resourceRoot, weapondealer1) 

Edited by Guest
Link to comment
function weapondealer1() 
    weapondealer1 = createPed ( 28, 1604.3000488281, -1721.0999755859, 6.3000001907349 ) 
    setTimer(setPedAnimation, 1000, 1, weapondealer1, "DEALER", "DEALER_IDLE" ) 
    end 
addEventHandler ("onResourceStart", resourceRoot, weapondealer1) 

Link to comment

I tried that with "(weapondealer1, frozen) and without that. I think it's not working because he is doing the "DEALER_IDLE" animation and moving to the sides a little by steps..

EDIT: i fixed it by doing:

setElementFrozen ( weapondealer1, true ) 

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