Jump to content

wiki.mta door damage proof, does this work?


Xabache

Recommended Posts

I was unable to make the following work. Script loads and functions fine. Messages "All vehicles doors is not damageable" but a few chainsaw wacks later and the door is on the ground. Is this mta wiki script broken or am i missing something?

[url=https://wiki.multitheftauto.com/wiki/SetVehicleDoorsUndamageable]https://wiki.multitheftauto.com/wiki/Se ... damageable[/url] 

  
function doorsLikeGod() 
    for i, car in ipairs( getElementsByType ("vehicle") ) do 
        setVehicleDoorsUndamageable ( car, true ) 
    end 
    outputChatBox("All vehicles doors is not damageable") 
end 
addCommandHandler("nodamage", doorsLikeGod) 
  
function doorsNotLikeGod() 
    for i, car in ipairs( getElementsByType ("vehicle") ) do 
        setVehicleDoorsUndamageable ( car, false ) 
    end 
    outputChatBox("Now everyone can kick vehicles doors and throw them away.") 
end 
addCommandHandler("adddamage", doorsNotLikeGod) 

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...