Jump to content

Surge

Members
  • Posts

    3
  • Joined

  • Last visited

Everything posted by Surge

  1. I've tried it, but doesn't work for me
  2. 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)
  3. 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?
×
×
  • Create New...