Jump to content

(Ayuda) Desactivar misiles del hydra


lucascba

Recommended Posts

  • MTA Team

Esta el ejemplo en la Wiki,

function disableFireForHydra ( theVehicle, seat ) 
    if ( getElementModel ( theVehicle ) == 520 ) then -- if they entered a hydra 
        toggleControl ( "vehicle_secondary_fire", false ) -- disable their fire key 
    else -- if they entered another vehicle 
        toggleControl ( "vehicle_secondary_fire", true ) -- enable their fire key 
    end 
end 
addEventHandler ( "onClientPlayerVehicleEnter", getLocalPlayer(), disableFireForHydra ) 

Link to comment
  • 2 weeks later...
  • Recently Browsing   0 members

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