Jump to content

Problem with Animations and peds :(


capitanazop

Recommended Posts

Posted
function greetPlayer ( ) 
        -- we store the player's name 
        local joinedPlayerName = getClientName ( source ) 
        local serverName = getServerName( ) 
        ped = createPed( 108, 1707.9217529297, 1460.8656005859, 10.815040588379, 247.8258972168) 
        giveWeapon( ped, 31, 100 ) 
        setPedAnimation( ped, "ped", "FALL_back", -1, false, true, false ) 
        outputChatBox ( "Welcome " .. joinedPlayerName .. " to ".. serverName .."!" , source, 255, 255, 255 ) 
        makePedUseGun ( ped, 3, source ) 
end 
addEventHandler ( "onPlayerJoin", getRootElement(), greetPlayer ) 

when i spawn the ped dont have weapon and is freeze and the animation doesn't work

Posted

You can't give peds weapons on the same frame. Try to use a timer to give them weapon after they spawn and yes, makePedUseGun doesn't work (I think it was removed).

Posted
i thought you couldnt make peds until MTA 1.0, unless you used a nightly build ? :S

Yes. You can use nightly builds to test 1.0 functions. Not all of them work correctly, that's because devs are still working hard.

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