Xabache Posted February 6, 2015 Posted February 6, 2015 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)
Tomas Posted February 6, 2015 Posted February 6, 2015 From the wiki: Note that the vehicle has to be locked using setVehicleLocked for this setting to have any effect. Currently developing for International Gaming Community - Join us!
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now