Jump to content

Evitar que el auto se prenda fuego al darse vuelta


Allavaz

Recommended Posts

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

Link to comment
  • Recently Browsing   0 members

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