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 = falseType:
booleanDefault:
falseDescription: Enable debug mode to see detailed console messages and access debug commands
Production Note: Always set to
falsefor production servers to hide debug information
Language Configuration
Locale = "En"Type:
stringOptions:
"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:
stringOptions:
"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:
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:
tableDescription: 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:
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:
booleanDefault:
trueDescription: Automatically hide oil drum object when vehicle trunk is closed
Alternative: Set to
falseto keep oil drums always visible
Purchase System
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 databaseQuantity- How many items neededRemove- Whether to consume the item after use
π§ Oil Slick Effects
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
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
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
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
Set your server's economy: Adjust
PriceandCurrencyConfigure NPC location: Set
Buy.Ped.Coordsto your preferred locationCustomize timings: Modify
Timesvalues for your server's paceSetup Discord logging: Enable and configure webhook URL
Adjust restrictions: Modify
Blacklistfor your server's vehiclesTest 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