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 restriction
Vehicle-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:
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:
🛠️ 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
1. Check Config.BetterDriveby
2. Verify seat permissions
Ensure blacklist/whitelist are mutually exclusive
Set Config.AffectedVehicleClasses[15] = false