Page cover

๐Ÿ”‘Trakka Key Management

The Trakka system replicates a real-world police vehicle key management board, allowing roleplay communities to view and check out vehicles assigned to a specific station and lock/unlock cars.

๐Ÿ“ฆ Features

  • ๐Ÿ” Full key-based vehicle locking/unlocking system

  • ๐Ÿงญ Per-station board system with vehicle assignments

  • โš ๏ธ Out of service flag for vehicles

  • ๐Ÿ”ด Live vehicle booking system โ€” prevents duplicates

  • ๐Ÿ“‹ Fully in-game admin tools (add/edit/remove vehicles & boards)

  • ๐Ÿง  Parking spot assignment using manual XYZ+Heading entry

  • ๐Ÿ–ฑ๏ธ ox_target integration for immersive prop interaction

  • ๐Ÿงพ Data saved persistently in boards.json

  • ๐ŸŒ Discord webhook logging


๐Ÿงฑ Installation

Follow instructions in Getting Started


๐Ÿ“ฆ Dependancies

๐Ÿ•น๏ธ Usage

๐Ÿง Accessing a Board

  1. Approach a placed Trakka board (prop)

  2. Use ox_target to open the UI

  3. View all vehicles assigned to the board

Vehicle States:

  • โœ… Available โ€“ green status, can be checked out

  • ๐Ÿ”ด In Use โ€“ orange status, already checked out by someone

  • โš ๏ธ Out of Service โ€“ disabled, cannot be checked out

๐Ÿ” Keys & Locking

  • Players receive keys when checking out a vehicle

  • Can lock/unlock their assigned vehicle via ox_target

  • Includes fob animation and indicator flashes

  • Keys are removed when the vehicle is returned


๐Ÿ‘ฎ Admin Mode

Use the Toggle Administration button in the UI to enable admin mode.

Admin Actions Per Vehicle:

Icon
Function

โš ๏ธ

Toggle Out of Service

โœ๏ธ

Edit vehicle details (name, plate, model, livery, extras, parking)

๐Ÿ—‘๏ธ

Delete vehicle from board

Other Admin Tools:

  • ๐ŸŸฉ Add Vehicle โ€“ add a new entry to the board

  • ๐Ÿงญ Paste coords from clipboard (TXAdmin-friendly)

  • ๐Ÿงป Delete Board โ€“ remove a board and its vehicles

โž• Adding a Board

Use the command:

  • Places a new board prop at your location

  • Prompts for a station name

  • Automatically syncs to all players

  • Saved to boards.json


๐Ÿ“ค Exports

โŒ This resource currently does not expose any exports.


โš™๏ธ Configuration

๐Ÿ”ง Config.lua

๐Ÿ”น WebhookURL

Discord webhook endpoint to receive vehicle check-in/out logs.

๐Ÿ”น WebhookName and WebhookAvatar

Optional: Customize the webhook sender name/icon.

๐Ÿ”น AuthorizedAdmins

List of identifiers (e.g. Steam, Discord) that are allowed to manage boards and vehicles.


Last updated