Jump to content

Car with unlimited Life


Ninja

Recommended Posts

function cars(thePlayer) 
  
x,y,z=getElementPosition(thePlayer) 
veh=createVehicle(411,x,y,z) 
warpPedIntoVehicle(thePlayer,veh) 
setVehicleDamageProof(veh,true) 
end 
  
addCommandHandler("carplease",cars) 

here if you type in /carplease you'll get bullet proof car! i think it's inferno but i'm not sure!

Link to comment
addEventHandler ( "onVehicleEnter", root, 
    function ( ) 
        setVehicleDamageProof ( source, true ) 
    end 
) 

That'll set damage proof to the vehicle you've just entered.

it's for race and player is allready in vehicle i think ?

Link to comment

Big Huge Thanks To all...

Finally it works with

UnlimitedHP.lua:

  
    addEventHandler ( "onVehicleDamage", root, 
        function ( ) 
            setVehicleDamageProof ( source, true ) 
        end 
    ) 
  

and meta.xml:

  

    

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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