Config

βš™οΈ Configuration

The alpha-OilDrum script offers extensive customization options through the Shared/Config.lua file. This page provides detailed explanations for each configuration option to help you tailor the script to your server's needs.

πŸ”§ General Settings

Debug Mode

Debug = false
  • Type: boolean

  • Default: false

  • Description: Enable debug mode to see detailed console messages and access debug commands

  • Production Note: Always set to false for production servers to hide debug information

Language Configuration

Locale = "En"
  • Type: string

  • Options: "En" | "Tr"

  • Default: "En"

  • Description: Language setting for all script messages and notifications

  • Supported Languages:

    • "En" - English

    • "Tr" - Turkish

  • Expandable: Add more languages by creating new files in the Locales/ folder

Interaction System

  • Type: string

  • Options: "Target" | "Default"

  • Default: "Target"

  • Description: How players interact with objects and NPCs

    • "Target" - Use target systems (ox_target/qb-target) for interactions (recommended)

    • "Default" - Use key press interactions with on-screen text

πŸ› οΈ Required Items

Configure the required items for oil drum operations:

Item
Config Key
Default Value
Purpose

Screwdriver Set

ScrewdriverSet

"screwdriverset"

Needed to drill hole in oil drum

Electronic Kit

ElectronicKit

"electronickit"

Needed to install electronic activation system

⚠️ Important: Ensure these items exist in your server's item database

🚫 Vehicle Restrictions

Model Blacklist

  • Type: table

  • Description: Specific vehicle model names to restrict (case sensitive)

  • Default: Emergency vehicles are blacklisted

  • Reference: Find vehicle names at FiveM Vehicle Models

  • Empty Table: Use {} to allow all models

Class Blacklist

Vehicle classes restricted by default:

Class ID
Category
Reason

8

Motorcycles

Too small for oil drums

10

Industrial

Work vehicles

11

Utility

Service vehicles

13

Cycles

Bicycles

14

Boats

Water vehicles

15

Helicopters

Air vehicles

16

Planes

Air vehicles

17

Service

Service vehicles

18

Emergency

Emergency vehicles

19

Military

Military vehicles

20

Commercial

Commercial vehicles

21

Trains

Rail vehicles

22

Open Wheel

Racing cars

Allowed Classes Reference:

  • 0: Compacts

  • 1: Sedans

  • 2: SUVs

  • 3: Coupes

  • 4: Muscle

  • 5: Sports Classics

  • 6: Sports

  • 7: Super

  • 9: Off-road

  • 12: Vans

πŸ›’οΈ Oil Drum System

Economic Settings

  • Price: Cost to purchase an oil drum (in your server's currency)

  • Currency: Symbol displayed in messages and Discord logs

Auto-Hide Feature

  • Type: boolean

  • Default: true

  • Description: Automatically hide oil drum object when vehicle trunk is closed

  • Alternative: Set to false to keep oil drums always visible

Purchase System

Setting
Type
Default
Description

Distance

number

3.0

Maximum distance from NPC to purchase (game units)

PoliceAlertChance

number

50

Chance police get alerted (0-100%)

AlertJobs

table

{"police", "sheriff"}

List of job names to alert when oil drum is purchased

BlipSettings.Sprite

number

415

Blip icon ID for police alert on map

BlipSettings.Scale

number

0.5

Size of the blip on map (0.0-2.0)

BlipSettings.Colour

number

1

Color ID of the blip

BlipSettings.Flashes

boolean

false

Whether the blip flashes on map

BlipSettings.Time

number

5

How long blip stays on map (seconds)

BlipSettings.Radius

number

0

Radius blip size (0 for normal blip)

Ped.Coords

vector3

Docks area

World coordinates where NPC spawns

Ped.Heading

number

271.17

Direction NPC faces (0-360 degrees)

Ped.Model

hash

s_m_m_dockwork_01

NPC model for vendor

Removal System

Access Control:

  • "Everyone" - Any player can remove oil drums

  • "Job" - Only specific jobs with minimum grades can remove

Job Requirements Format:

Item Requirements:

  • Item - Item name from your database

  • Quantity - How many items needed

  • Remove - Whether to consume the item after use

πŸ’§ Oil Slick Effects

Setting
Type
Options
Description

Radius

number

Any positive number

Distance from oil slick center that affects vehicles (game units)

Level

number

1 or 2

Slipping intensity: β€’ 1 = Light slipping (drift tires only) β€’ 2 = Heavy slipping (drift tires + reduced grip)

⏱️ Timing Configuration

Oil Drum Operations

Setting
Default
Description

Buy

10 seconds

Time to complete oil drum purchase

Drill

30 seconds

Time to drill hole in oil drum

Kit

30 seconds

Time to install electronic kit

Pour

10 seconds

How long oil pouring lasts after activation

Hold

3 seconds

How long to hold activation key before oil starts

Remove

30 seconds

Time to remove oil drum from vehicle

Oil Slick Timings

Setting
Default
Description

Rate

250ms

How often new oil slicks are created while pouring

Control

500ms

How often to check if vehicles are on oil slicks

Clear

100 seconds

How long oil slicks stay on road before cleanup

πŸ“± Discord Logging

Basic Configuration

Setting
Description

Enable

Set to true to enable Discord logging

WebhookURL

Your Discord webhook URL from server settings

AvatarURL

Avatar image URL for Discord bot messages

DateFormat

Date/time format for timestamps (Lua format guide)

Event Colors

Use Hex to Decimal Converter for custom colors.

Custom Vehicle Images

Add custom vehicle images for enhanced Discord logs by mapping vehicle names to image URLs.

πŸš— Custom Vehicle Positioning

Some vehicles may need special oil drum positioning to look natural. Add entries for specific vehicle models with X, Y, Z offset adjustments.

πŸ“„ Full Config File

🎯 Quick Setup Guide

  1. Set your server's economy: Adjust Price and Currency

  2. Configure NPC location: Set Buy.Ped.Coords to your preferred location

  3. Customize timings: Modify Times values for your server's pace

  4. Setup Discord logging: Enable and configure webhook URL

  5. Adjust restrictions: Modify Blacklist for your server's vehicles

  6. Test and fine-tune: Use debug mode for testing, then disable for production

⚠️ Important Notes

  • Always backup your config before making changes

  • Restart the resource after configuration changes

  • Test thoroughly with debug mode before production

  • Ensure required items exist in your item database

  • Some anti-cheat systems may interfere with client-side object creation

Last updated