BHD Scripts
  • πŸ“šDocumentation
  • Scripts
    • πŸ–₯️BHD Bossmenu
      • Dependencies
      • Instalation
      • Configuration
        • Society Money Log
      • Errors
    • πŸš—BHD Garage
      • Dependencies
      • Instalation
      • Configuration
      • Server Configuration
      • Commands
      • Errors
      • Developer Options
        • Exports
          • Client Exports
          • Server Exports
            • Vehicle Object
        • Events
        • Editable Files
          • Client
          • Server
            • editable_server.lua
            • functions.lua
        • Vehicle Images
    • πŸ“œBHD MOT
      • Dependencies
      • Instalation
      • Configuration
    • 🐾BHD Animal Tracker
      • Dependencies
      • Instalation
      • Configuration
Powered by GitBook
On this page
  1. Scripts
  2. BHD Garage

Server Configuration

πŸ“œ Server Configuration (config_s.lua)

This file controls server-side restrictions, job permissions, and item rules affecting vehicle delivery.

config_s.lua
SConfig = {
    FastRecoveryJobs = {
        ["police"] = true,
        ["sheriff"] = true,
        ["ambulance"] = true,
        ["lsfd"] = true,
        ["sahp"] = true,
        ["security"] = true,
    },
    InstantDeliveryIdentifiers = {
        -- ["license:xxxxxxxxxxxx"] = true,
    },
    AdminGroups = {
        ["admin"] = true,
        ["management"] = true,
        ["superadmin"] = true,
    },
    ImpoundJobs = {
        ['police'] = true,
        ['sheriff'] = true,
        ['lsfd'] = true,
    },
    DebugPlates = {
        -- ["ABCD1234"] = true,
    ,
    },
    ProhibitedItems = {
        ["joint"] = true,
        ["weed"] = true,
        ["dry_weed"] = true,
        ["coca_leaf"] = true,
        ["pure_coca"] = true,
    },
    WhitelistedGuns = {
        ["WEAPON_BALL"] = true,
        ["WEAPON_FIREEXTINGUISHER"] = true,
        ["WEAPON_FIREWORK"] = true,
        ["WEAPON_PRECISIONRIFLE"] = true,
        ["WEAPON_PETROLCAN"] = true,
        ["WEAPON_KNIFE"] = true,
        ["WEAPON_KARAM"] = true,
        ["WEAPON_BUTTER"] = true,
        ["WEAPON_KNUCKLE"] = true,
        ["WEAPON_MACHETE"] = true,
        ["WEAPON_HAMMER"] = true,
        ["WEAPON_HATCHET"] = true,
        ["WEAPON_BAT"] = true,
        ["WEAPON_BATTLEAXE"] = true,
        ["WEAPON_BOTTLE"] = true,
        ["WEAPON_SNOWBALL"] = true,
    },
    WhitelistedAmmo = {
        ["ammo-9"] = true,
        ["ammobox-9"] = true,
        ["ammo-22"] = true,
        ["ammobox-22"] = true,
        ["ammo-45"] = true,
        ["ammobox-45"] = true,
    },
}

Fast Recovery Jobs

Defines which jobs can instantly recover impounded vehicles.

  • Example jobs: police, sheriff, ambulance, lsfd, sahp, security.

Instant Delivery Identifiers

Allows certain players (via license identifier) to receive vehicles instantly.

  • Add license identifiers to the list.

Admin Groups

Defines which admin ranks have full control over garage functionalities.

  • Example groups: admin, management, superadmin.

Impound Jobs

Defines which jobs can impound vehicles.

  • Example jobs: police, sheriff, lsfd.

Debug Plates

List of vehicle plates used for testing and debugging.

  • Plates can be added manually for whitelisted testing purposes.

Prohibited Items

A list of items that, if present in the vehicle’s trunk or glovebox, will prevent the vehicle from being delivered from another garage.

  • Example items: joint, weed, coca_leaf, pure_coca.

  • Vehicles containing any of these items cannot be requested from another garage.

Whitelisted Guns

A list of weapons that are allowed in vehicle storage. If a weapon not on this list is found in a vehicle’s trunk or glovebox, the vehicle cannot be delivered from another garage.

  • Example weapons: WEAPON_BALL, WEAPON_FIREEXTINGUISHER, WEAPON_PRECISIONRIFLE.

Whitelisted Ammo

A list of ammunition types that are allowed in vehicle storage. If any ammo not on this list is present in the vehicle’s trunk or glovebox, the vehicle will not be deliverable from another garage.

  • Example ammo: ammo-9, ammobox-9, ammo-45, ammobox-45.


πŸ“Œ Important Notes:

  • Ensure that admin groups and job permissions are correctly set before launching the script.

  • The prohibited items, whitelisted guns, and whitelisted ammo lists must be kept up to date to maintain proper restrictions.

  • Debug plates should only be used for testing purposes.

PreviousConfigurationNextCommands

Last updated 2 months ago

πŸš—