Jump to content

ayuda con bindKey


Brad96

Recommended Posts

Posted

lo que quiero es apagar el motor del auto pero nose no funciona , con el commandHandler si sirve

  
function ve() 
veh = createVehicle (411 , -2882.2739257813,1187.8278808594,7.733877658844) 
end 
addCommandHandler ("2",ve) 
  
function apagar() 
setVehicleEngineState ( veh , false ) 
end 
   
  
function bind() 
bindKey ("2","down",apagar) 
end 
addEventHandler ("onVehicleEnter" ,getRootElement(),bind) 

Mi Nick En El Juego : Bs|Brad

Mi Skype : fer_va_96

Posted

bindKey cuando se usa server-side, necesita el elemento del jugador al cual le va a crear el bind.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

  • Recently Browsing   0 members

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