⚙️Full Configuration Breakdown
1. Core Settings
Config.BetterDriveby = true -- Master switch (keep enabled)
Config.DebugMode = false -- Enable ONLY for troubleshooting
Config.DebugCommandName = "carseat" -- In-game command: /carseat Pro Tip: Use /carseat while in a vehicle to see seat permissions in console.
2. Realism Enhancements
Look Behind Requirement
Config.EnableLookBehind = true -- Players must face backward to shoot behind
Config.LookBehind = -7.0 -- Angle detection (-5=strict to -10=lenient) Values Explained:
-7.0= 70° rear cone restrictionVehicle-specific override example:
luaCopy
Config.CustomVehicleLookBehind = { ["granger"] = -9.0 -- Wider angle for armored vehicles }
3. Speed Restrictions
Config.UseMPH = false -- True for MPH, False for KMH
Config.EnableMinDriveBySpeed = false -- No drive-bys below:
Config.MinDriveBySpeed = 10 -- 10 KMH/6 MPH
Config.EnableMaxDriveBySpeed = true -- No drive-bys above:
Config.MaxDriveBySpeed = 75 -- 75 KMH/47 MPH Recommended Presets:
Hardcore RP
20
50
Cops & Robbers
0
100
Realism
15
60
4. Weapon Control
Blacklist OP Weapons (Recommended):
Config.EnableWeaponBlacklist = true
Config.WeaponBlacklist = {
"WEAPON_MINIGUN", -- No minigun drive-bys
"WEAPON_RPG", -- Disable rocket spam
"WEAPON_STUNGUN" -- Prevent tazer abuse
} Whitelist Mode (Pistols Only):
Config.EnableWeaponWhitelist = true
Config.WeaponWhitelist = {
"WEAPON_PISTOL",
"WEAPON_SNSPISTOL"
} 5. Vehicle Restrictions
Ban Specific Vehicles:
Config.RestrictedVehicles = {
["rhino"] = true, -- Tank
["bus"] = true, -- Bus
["trash"] = true -- Garbage truck
} Class-Wide Restrictions:
Config.AffectedVehicleClasses = {
[15] = false, -- Disable drive-bys in helicopters
[19] = false -- Block military vehicles
} Key Class IDs:
8 Motorcycles | 18 Emergency | 20 Commercial
6. Seat Control
Standard Cars:
Config.VehicleSeats = {
[-1] = { CanDriveBy = false }, -- Block driver from shooting
[0] = { CanDriveBy = true } -- Allow front passenger
} Helicopters:
Config.HelicopterSeats = {
[-1] = { CanDriveBy = false }, -- Pilot can't shoot
[1] = { CanDriveBy = true } -- Left passenger can shoot
} Seat Index Guide:
-1 Driver | 0 Front Passenger | 1 Rear Left | 2 Rear Right
7. Dimension Control
Config.EnableRoutingBucketRestriction = true
Config.RoutingBuckets = { 5, 6 } -- Disable in MLO interiors Common Uses:
Safe zones
Prison dimensions
Event areas
🛠️ Recommended Configurations
Roleplay Server:
Config.EnableLookBehind = true
Config.MaxDriveBySpeed = 50
Config.WeaponBlacklist = { "WEAPON_MICROSMG", "WEAPON_ASSAULTSMG" } Zombie Survival:
Config.EnableWeaponWhitelist = true
Config.WeaponWhitelist = { "WEAPON_PISTOL" }
Config.RestrictedVehicles = { ["buzzard"] = true } -- No chopper drive-bys 🚨 Troubleshooting
Drive-by not working
1. Check Config.BetterDriveby
2. Verify seat permissions
Weapons still allowed
Ensure blacklist/whitelist are mutually exclusive
Helicopter shooting
Set Config.AffectedVehicleClasses[15] = false
Need Help? Join FiveWorld Discord for config reviews and optimization! 🚗💨
Last updated