Jump to content

car dmg [re]


kevin11

Recommended Posts

well i tried making a no dmg for cars and it worked but this is my problem

when i start the resource and spawn a car it works but when i spawn a new car it get damaged

:S it only works if i keep restarting the resource everytime im going into a new car

here is my code

vehicles = getElementsByType ( "vehicle" )
for vehicleKey, vehicleValue in ipairs(vehicles) do
setVehicleDamageProof( vehicleValue, true)
end
addEventHandler ( "onVehicleEnter", setVehicleDamageProof )

Edited by Guest
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...