Jump to content

Ayuda Nitro


Julian09123

Recommended Posts

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) 

Link to comment

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) 
Link to comment
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

Link to comment
  • Recently Browsing   0 members

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