DirkScripts Logo

Login With FiveM

Login

πŸ“š Dirk Lib
β€Ί

Getting Started

Getting Started

πŸš€ Quick Start

To get started, simply ensure dirk_lib is started after your framework, inventory, and targeting resources.
There’s no complex setupβ€”dirk_lib will automatically detect supported resources and apply the correct bridging logic for your setup.

properties

# Example Start Order
ensure qb-core
ensure ox_inventory
ensure ox_target

ensure dirk_lib

No extra config neededβ€”just ensure the dependencies are started before dirk_lib.


βš™οΈ Server Variables (Convars)

You can customize dirk_lib using server variables (ConVars). Most bridges are auto-detected, so you only need a small base config to get started.

ℹ️ πŸ’‘ Tip:
- Create a file called dirk_lib.cfg this will stop your actual server.cfg getting too clogged.
- Then just do exec dirk_lib.cfg somewhere in your server.cfg before dirk_lib starts.

properties
# Base config (recommended minimum)
setr dirk_lib:language en
setr dirk_lib:currency $
setr dirk_lib:serverName DirkRP

Auto-Detect vs Manual Override

By default, dirk_lib auto-detects your framework/inventory/target and other supported bridge resources.

You only need manual overrides if:

  • you run multiple supported resources and want to force one
  • auto-detection selects a different resource than you want
  • you use custom naming/layout and want explicit control
properties
# Optional overrides (only set what you want to force)
setr dirk_lib:framework qbx_core
setr dirk_lib:inventory dirk_inventory
setr dirk_lib:target ox_target
setr dirk_lib:itemImgPath nui://dirk_inventory/web/images/
setr dirk_lib:primaryIdentifier license

Theme Colors

Theme colors apply across DirkScripts UIs that use dirk_lib theming. Setting these lets you replace the default green Dirk theme globally with your own brand/theme.

You can use either:

  • a Mantine theme color name (blue, grape, teal, etc.)
  • a fully custom palette (customTheme) with 10 shades
properties
# Mantine-based theme
setr dirk_lib:primaryColor dirk   # or another Mantine color name
setr dirk_lib:primaryShade 9      # 0-9 (0 = lightest, 9 = darkest)

# Custom palette (use when primaryColor is custom)
setr dirk_lib:primaryColor custom
setr dirk_lib:customTheme [
  "#e5f8ff",
  "#d0ecff",
  "#a0d7fc",
  "#6dc1fa",
  "#47aef9",
  "#32a2f9",
  "#259cfa",
  "#1888df",
  "#0179c8",
  "#0068b1"
]

# Optional branding extras
setr dirk_lib:logo https://via.placeholder.com/150

Useful references:

Developers

To get started with lib, include the shared script within your resource's fxmanifest.lua

lua
shared_scripts {
  '@dirk_lib/init.lua'
}

You are able to select modules to be loaded, however they will also dynamically import. This can be done via the dirk_libsmanifest option

lua
dirk_libs {
  'math',
  'objects'
}

Supported Resources

dirk_lib supports two kinds of integration:

  • Bridge systems: resources with dedicated bridge implementations in dirk_lib/bridge/*
  • Autodetected integrations: resources detected from src/autodetect.lua that can be selected automatically or forced via ConVars

Bridge Systems

These systems currently have concrete bridge folders inside dirk_lib/bridge.

SystemSupported Resources
Frameworkes_extended, pork_core, qb-core, qbx_core
Inventorycodem-inventory, dirk_inventory, ox_inventory, qb-inventory, qs-inventory, tgiann_inventory
Targetox_target, qb-target, qtarget
Interactinteract, sleepless_interact
Time / Weatherav_weather, cd_easytime, qb-weathersync, Renewed-Weathersync, vSync
Keyscd_garage, MrNewbVehicleKeys, okokGarage, qb-vehiclekeys, qbx_vehiclekeys, qs-vehiclekeys, Renewed-Vehiclekeys, t1ger_keys, vehicles_keys, wasabi_carlock
Fuelcdn-fuel, LegacyFuel, okokGasStation, ox_fuel, ps-fuel, Renewed-Fuel, ti_fuel, x-fuel
Clothing / Appearancedirk_charCreator, esx_skin, illenium-appearance, qb-clothing, rcore_clothing, tgiann-clothing

Other Autodetected Integrations

These names are present in src/autodetect.lua and can be auto-selected or manually overridden via ConVars.

SystemAutodetect Targets
Frameworkes_extended, qbx_core, qb-core, nd-framework, pork_core
Inventorydirk_inventory, ox_inventory, qb-inventory, qs-inventory, codem-inventory, tgiann_inventory, mf-inventory, core_inventory
Targetox_target, qb-target, q-target, bt-target
Interactredm-uiprompt, sleepless_interact, interact
Time / Weatherav_weather, cd_easytime, qb-weathersync, Renewed-Weathersync, vSync, wasabi_wheather
Keyscd_garage, MrNewbVehicleKeys, t1ger_keys, okokGarage, qb-vehiclekeys, qbx_vehiclekeys, qs-vehiclekeys, Renewed-Vehiclekeys, vehicles_keys, wasabi_carlock, ludaro-keys
Fuelcdn-fuel, LegacyFuel, ox_fuel, ps-fuel, Renewed-Fuel, ti_fuel, x-fuel, wasabi_fuel, okokGasStation
Phonelb-phone, qb-phone, gksphone, high-phone, npwd
Garageqb-garages, wasabi_garage, renewed-garage
Clothing / Appearanceesx_skin, qb-clothing, rcore_clothing, illenium-appearance, fivem-appearance, dirk_charCreator, tgiann_clothing
Ambulanceqb-ambulancejob, wasabi_ambulance, core_ambulance
Prisonqb-prison, rcore_prison, wasabi_jail
Dispatchbub_mdt, cd_dispatch, linden_outlawalert, qs_dispatch, ps-dispatch, tk_dispatch
Skillssd_skills, evolent_skills, core_skills, B1-skillz, skill_system_v1.5, skillsystem_v3, boii_skills, skillsystem_v2, ot_skill_system
Housingqs-housing, bcs_housing

ℹ️ If you want to force a specific integration instead of relying on autodetect, set the matching ConVar such as dirk_lib:framework, dirk_lib:inventory, dirk_lib:target, dirk_lib:time, dirk_lib:keys, or dirk_lib:fuel.

⚠️ This list is based on the current dirk_lib source. Autodetect targets and concrete bridge folders are not always identical, so if you are forcing an override, use a resource name that matches the current source for your version.

Copyright Β© 2026 DirkScripts.

Not affiliated with or endorsed by Rockstar North, Take-Two Interactive, or any other rights holders. FiveM is a copyright and registered trademark of Take-Two Interactive Software, Inc.
Our checkout system is provided by Tebex Limited, who manage payment processing, product delivery, and billing support. Prices shown in currencies other than GBP are approximate conversions updated daily. All purchases are processed in GBP, so the final amount charged may vary depending on your bank or payment provider’s exchange rate.