NIKO951 Posted January 24, 2014 Posted January 24, 2014 muy buenas a todos, como podria hacer que al crear un ped ese ped tenga un arma? saludos y espero me puedan ayudar.
0xCiBeR Posted January 24, 2014 Posted January 24, 2014 createPed giveWeapon Ej: function inicio() local elped = createPed(120, 5540.6654, 1020.55122, 1240.545) giveWeapon(elped,31,200) end addEventHandler ( "onResourceStart", resourceRoot, inicio ) DevOps Engineer, Cloud Advocate & Security Engineer(Red Team) | Coffee, Containers & Burp
Castillo Posted January 24, 2014 Posted January 24, 2014 Dale el arma con un timer de 1 segundo despues de crearlo, habia un problema si se la dabas justo cuando lo creas. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
0xCiBeR Posted January 24, 2014 Posted January 24, 2014 Dale el arma con un timer de 1 segundo despues de crearlo, habia un problema si se la dabas justo cuando lo creas. function inicio() local elped = createPed(120, 5540.6654, 1020.55122, 1240.545) setTimer( function () giveWeapon(elped,31,200) end,1000,1) end addEventHandler ( "onResourceStart", resourceRoot, inicio ) DevOps Engineer, Cloud Advocate & Security Engineer(Red Team) | Coffee, Containers & Burp
Castillo Posted January 24, 2014 Posted January 24, 2014 No hace falta crear otra funcion, podes hacer: setTimer ( giveWeapon, 600, 1, elped, 31, 200, true ) San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
0xCiBeR Posted January 24, 2014 Posted January 24, 2014 De nada. DevOps Engineer, Cloud Advocate & Security Engineer(Red Team) | Coffee, Containers & Burp
Castillo Posted January 24, 2014 Posted January 24, 2014 De nada. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Recommended Posts