Jump to content

[Duda]CreateWeapon


Recommended Posts

Me imagino que no habrás copiado tal cual te lo dió Yakuza y lo pusiste en tu script... Es un ejemplo, no es el script. :|

no yo lo scriptee aqui esta el script

weap = createWeapon("38") 
if speed > 12 then 
setWeaponState( weap, "firing") 
 end 
  

Link to comment

me suige dando error .-.

Probe asi:

weap = createWeapon("38") 
    if speed > 12 then 
    setWeaponState( weap, "firing", true) 
     end 
 local x,y,z = getElementPosition( myCar ) 
-- create the minigun; 
weap = createObject ( 38, x, y, z + 3 ) 
-- attach the minigun to the car; 
attachElements ( samsite, myCar, 0, 0, 0 ) 

me suige dando error en la linea 1

Link to comment

por ejemplo

function comandoxd() 
local x, y, z = getElementPosition(localPlayer) 
local mycar = createVehicle(411, x, y, z) 
local weap = createWeapon(38, 0, 0, 0) 
attachElements (weap, mycar) 
end 
addCommandHandler("ejemplo", comandoxd) 

Link to comment
por ejemplo
function comandoxd() 
local x, y, z = getElementPosition(localPlayer) 
local mycar = createVehicle(411, x, y, z) 
local weap = createWeapon(38, 0, 0, 0) 
attachElements (weap, mycar) 
end 
addCommandHandler("ejemplo", comandoxd) 

createWeapon no vá con ID si no con el nombre del arma. :?

Link to comment
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...