Jump to content

Evitar que el auto se prenda fuego al darse vuelta


Allavaz

Recommended Posts

Posted

Bueno, el título lo dice todo, quiero lograr que el auto no se prenda fuego cuando vuelque, pero no encuentro manera de lograrlo.

Alguna idea?

Posted

Según se, en Paradise los vehículos no explotan, quizá esto te guié un poco:

addEventHandler( "onVehicleDamage", root, 
    function( loss ) 
        if getElementHealth( source ) <= 301 then 
            setElementHealth( source, 300 ) 
            setVehicleDamageProof( source, true ) 
            setVehicleEngineState( source, false ) 
            vehicles[ source ].engineState = false 
  
            if getVehicleOccupant( source ) then 
                outputChatBox( "(( Your engine broke down. ))", getVehicleOccupant( source ), 255, 204, 0 ) 
            end 
        end 
    end 
) 

https://github.com/mabako/mta-paradise/ ... hicles.lua

  • Recently Browsing   0 members

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