Jump to content

Problem with peds...


xploziv_mc

Recommended Posts

Hi guys!I have one big big problem with peds...I make map but I can't make f*cking script for peds...can someone make this shit?

X:3000

Y:-2264.5

Z:1.8999999761581

ID of skin:280

and if you can make that- he must have gun and that is and maybe any good animation...

and that is!Please...help

Link to post

Try this :

ped = createPed( Skin, X, Y, Z, Rx ) 
  
function pedWeps( ) 
    giveWeapon( ped, 31, 200, true ) 
end 
addEventHandler( "onResourceStart", root, 
    function( ) 
        setTimer( pedWeps, 1000, 0 ) 
    end 
) 
-- Give Ped  wep after 1 second  

Link to post
Try this :
ped = createPed( Skin, X, Y, Z, Rx ) 
  
function pedWeps( ) 
    giveWeapon( ped, 31, 200, true ) 
end 
addEventHandler( "onResourceStart", root, 
    function( ) 
        setTimer( pedWeps, 1000, 0 ) 
    end 
) 
-- Give Ped  wep after 1 second  

What mean Rx???What I must write in this place?

Edited by Guest
Link to post
Try this :
ped = createPed( Skin, X, Y, Z, Rx ) 
  
function pedWeps( ) 
    giveWeapon( ped, 31, 200, true ) 
end 
addEventHandler( "onResourceStart", root, 
    function( ) 
        setTimer( pedWeps, 1000, 0 ) 
    end 
) 
-- Give Ped  wep after 1 second  

What mean Rx???

its mean Rotation X :)

Link to post

Why I don't have luck with lua....bad bad bad lua...

ped = createPed( 280, 3000, -2264.5, 1.8999999761581, 1 ) 
  
function pedWeps( ) 
    giveWeapon( ped, 31, 200, true ) 
end 
addEventHandler( "onResourceStart", root, 
    function( ) 
        setTimer( pedWeps, 1000, 0 ) 
    end 
) 
-- Give Ped  wep after 1 second 
  
function anims() 
setPedAnimation(Ped, "colt_cop", "colt45_crouchfire") 
end 
setTimer(anims, 10000, 0) 

this is code and...don't work... my police friend stay like tree...

Link to post
Why I don't have luck with lua....bad bad bad lua...

ped = createPed( 280, 3000, -2264.5, 1.8999999761581, 1 ) 
  
function pedWeps( ) 
    giveWeapon( ped, 31, 200, true ) 
end 
addEventHandler( "onResourceStart", root, 
    function( ) 
        setTimer( pedWeps, 1000, 0 ) 
    end 
) 
-- Give Ped  wep after 1 second 
  
function anims() 
setPedAnimation(Ped, "colt_cop", "colt45_crouchfire") 
end 
setTimer(anims, 10000, 0) 

this is code and...don't work... my police friend stay like tree...

Try This :

local Ped = createPed(280, 490.66412353516, -1503.8507080078, 20.566244125366, 0) 
setPedArmor(Ped, 100) 
setPedRotation(Ped, 0.39208984375) 
setTimer(giveWeapon, 3500, 1, Ped, math.random(25,31), 300, true) 
  
function anims() 
setPedAnimation(Ped, "GANGS", "smkcig_prtl") 
end 
setTimer(anims, 10000, 0) 

and change x, y, z , R :)

Link to post

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