Surge Posted June 19, 2019 Share Posted June 19, 2019 Hi, is this setVehicleDoorsUndamageable function is still bugged? I added setVehicleLocked fuction as it required, but nothing happend, doors were still damaged and fall off. Is there any solution to set these doors rly undamagable? Link to comment
MTA Team 0xCiBeR Posted June 19, 2019 MTA Team Share Posted June 19, 2019 Can you please post your code? 1 Link to comment
JustinMTA Posted June 20, 2019 Share Posted June 20, 2019 Search function works wonders This is what you need 1 Link to comment
Surge Posted June 20, 2019 Author Share Posted June 20, 2019 (edited) crun setVehicleLocked(getPedOccupiedVehicle(getLocalPlayer()), true) crun setVehicleDoorsUndamageable(getPedOccupiedVehicle(getLocalPlayer()), true) function vehdoorsdamagable() if isPedInVehicle(source()) then playerVehicle = getPedOccupiedVehicle ( source() ) if ( playerVehicle ) then for _, car in ipairs( getElementsByType ("vehicle") ) do setVehicleDoorsUndamageable ( car, true ) end outputChatBox("Doors are not damageable") end end end addCommandHandler("doors", vehdoorsdamagable) Edited June 20, 2019 by Surge Link to comment
Surge Posted June 20, 2019 Author Share Posted June 20, 2019 9 hours ago, JustinMTA said: Search function works wonders This is what you need I've tried it, but doesn't work for me Link to comment
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