WhiteThunder
Adds a UI to deploy code locks to modular cars

Supported Games

Features

  • Allows players to deploy code locks to modular cars at a car lift using a UI

Required plugins

  • Vehicle Deployed Locks -- No configuration or permissions necessary. If you want, you can optionally configure that plugin to alter some aspects of how code locks work on cars and other vehicles.

How it works

Players will see the UI while editing a car at a lift if the following conditions are met.

  • The player has permission.
  • The player is not building blocked.
  • The player has a code lock, sufficient resources to craft one, or permission for free locks in the Vehicle Deployed Locks plugin.
  • The car has a cockpit module (i.e., driver seat).
  • The car does not already have a key lock or code lock deployed to it (though it may have a built-in car lock).

UI Screenshots

Add Code Lock ButtonRemove Code Lock Button

Permissions

  • carlockui.use.codelock -- Allows the player to deploy and remove code locks via UI buttons while editing a car at a lift.

Open to supporting deployed key locks on request.

Configuration

{
  "UISettings": {
    "AnchorMin": "0.5 0",
    "AnchorMax": "0.5 0",
    "OffsetMin": "385.5 349",
    "OffsetMax": "572.5 377",
    "AddButtonColor": "0.44 0.54 0.26 1",
    "RemoveButtonColor": "0.7 0.3 0 1",
    "ButtonTextColor": "0.97 0.92 0.88 1"
  }
}
  • UISettings -- (Advanced) Control the display of the UI buttons.

Localization

{
  "UI.AddCodeLock": "Add Code Lock",
  "UI.RemoveCodeLock": "REMOVE Code Lock"
}

MIT License


Copyright (c) 2020 WhiteThunder


Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:


The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.


THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.