Jump to content

Ayuda Nitro


Julian09123

Recommended Posts

Posted

Hola :3 como puedo hacer para que envez de ir a Freeroam/upgrades/nitro apretar Click derecho para tener nos osea

Apretas click derecho matienes apretado y tienes y dejas de apretar y se acaba el nos alguien sabe o me podrian ayudar? a hacerlo?

  • MTA Team
Posted

Mmm... se me ocurren un par de maneras..Puedes utilizar:

  
bindKey 
addVehicleUpgrade 
removeVehicleUpgrade 
unbindKey 
  

Posted
Mmm... se me ocurren un par de maneras..Puedes utilizar:
  
bindKey 
addVehicleUpgrade 
removeVehicleUpgrade 
unbindKey 
  

No hace falta el unbindKey,ya que puede usar "down" para ponerlo y "up" para sacarlo.

  • MTA Team
Posted

Lo puse, para que lo ejecute cuando sale del vehiculo asi no da errores :)

Ej:

  
  
addEventHandler("onVehicleExit",root, 
function () 
unbindKey (--etc etc 
end) 
  
  

Posted

Asi?

function nitro ( sourcePlayer, bindKey ) 
    theVehicle = getPlayerOccupiedVehicle ( sourcePlayer ) 
    if ( theVehicle ) then 
        addVehicleUpgrade ( theVehicle, 1010 ) 
    bindKey ( player, "x", "down", funcInput )       
    end 
end 
addEventHandler("onVehicleEnter",root, nitro) 
  
function sacarnos ( sourcePlayer, bindKey ) 
    theVehicle = getPlayerOccupiedVehicle ( sourcePlayer ) 
    if ( theVehicle ) then 
        removeVehicleUpgrade ( theVehicle, 1010 ) 
        bindKey ( player, "x", "up", funcInput )     
    end 
end 
addEventHandler("onVehicleExit",root, sacarnos) 

Posted

A Mi me funciona bien :D

function Nitro () 
local theVehicle = getPedOccupiedVehicle (localPlayer) 
if theVehicle then 
addVehicleUpgrade(theVehicle,1010) 
end 
end 
bindKey("x","down",Nitro) 
  
  
function Sacar() 
local theVehicle = getPedOccupiedVehicle (localPlayer) 
if theVehicle then 
removeVehicleUpgrade ( theVehicle, 1010 ) 
end 
end 
bindKey("x","up", Sacar) 
Posted
A Mi me funciona bien :D

function Nitro () 
local theVehicle = getPedOccupiedVehicle (localPlayer) 
if theVehicle then 
addVehicleUpgrade(theVehicle,1010) 
end 
end 
bindKey("x","down",Nitro) 
  
  
function Sacar() 
local theVehicle = getPedOccupiedVehicle (localPlayer) 
if theVehicle then 
removeVehicleUpgrade ( theVehicle, 1010 ) 
end 
end 
bindKey("x","up", Sacar) 

Jajja no lo habia probado xD pensaba que tenia un error.Gracias :3

  • Recently Browsing   0 members

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