Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Placeholder files and Config "enum" like changes #28

Merged
merged 12 commits into from
Nov 18, 2023
202 changes: 120 additions & 82 deletions config.lua
adweex marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -1,3 +1,42 @@
VehicleClasses = {
COMPACTS = 0,
SEDANS = 1,
SUVS = 2,
COUPES = 3,
MUSCLE = 4,
SPORTS_CLASSICS = 5,
SPORTS = 6,
SUPER = 7,
MOTORCYCLES = 8,
OFF_ROAD = 9,
INDUSTRIAL = 10,
UTILITY = 11,
VANS = 12,
CYCLES = 13,
BOATS = 14,
HELICOPTERS = 15,
PLANES = 16,
SERVICE = 17,
EMERGENCY = 18,
MILITARY = 19,
COMMERCIAL = 20,
TRAINS = 21,
OPEN_WHEEL = 22,
}

WeaponTypeGroups = {
MELEE = 2685387236,
HANDGUN = 416676503,
SMG = -957766203,
SHOTGUN = 860033945,
RIFLE = 970310034,
LMG = 1159398588,
SNIPER = 3082541095,
HEAVY = 2725924767,
THROWABLE = 1548507267,
MISC = 4257178988,
}

Config = {
debug = true, -- Set to true for development purposes only. Used for zones, and essential prints. Will be removed upon release

Expand All @@ -9,100 +48,99 @@ Config = {

-- Lockpick Settings
removeNormalLockpickChance = { -- Chance to remove lockpick on fail by vehicle class
[0] = 0.5, -- Compacts
[1] = 0.5, -- Sedans
[2] = 0.5, -- SUVs
[3] = 0.5, -- Coupes
[4] = 0.5, -- Muscle
[5] = 0.5, -- Sports Classics
[6] = 0.5, -- Sports
[7] = 0.5, -- Super
[8] = 0.5, -- Motorcycles
[9] = 0.5, -- Off-road
[10] = 0.5, -- Industrial
[11] = 0.5, -- Utility
[12] = 0.5, -- Vans
[13] = 0.5, -- Cycles
[14] = 0.5, -- Boats
[15] = 0.5, -- Helicopters
[16] = 0.5, -- Planes
[17] = 0.5, -- Service
[18] = 0.5, -- Emergency
[19] = 0.5, -- Military
[20] = 0.5, -- Commercial
[21] = 0.5, -- Trains
[22] = 0.5, -- Open Wheel
[VehicleClasses.COMPACTS] = 0.5,
[VehicleClasses.SEDANS] = 0.5,
[VehicleClasses.SUVS] = 0.5,
[VehicleClasses.COUPES] = 0.5,
[VehicleClasses.MUSCLE] = 0.5,
[VehicleClasses.SPORTS_CLASSICS] = 0.5,
[VehicleClasses.SPORTS] = 0.5,
[VehicleClasses.SUPER] = 0.5,
[VehicleClasses.MOTORCYCLES] = 0.5,
[VehicleClasses.OFF_ROAD] = 0.5,
[VehicleClasses.INDUSTRIAL] = 0.5,
[VehicleClasses.UTILITY] = 0.5,
[VehicleClasses.VANS] = 0.5,
[VehicleClasses.CYCLES] = 0.5,
[VehicleClasses.BOATS] = 0.5,
[VehicleClasses.HELICOPTERS] = 0.5,
[VehicleClasses.PLANES] = 0.5,
[VehicleClasses.SERVICE] = 0.5,
[VehicleClasses.EMERGENCY] = 0.5,
[VehicleClasses.MILITARY] = 0.5,
[VehicleClasses.COMMERCIAL] = 0.5,
[VehicleClasses.TRAINS] = 0.5,
[VehicleClasses.OPEN_WHEEL] = 0.5
},
removeAdvancedLockpickChance = { -- Chance to remove advanced lockpick on fail by vehicle class
[0] = 0.5, -- Compacts
[1] = 0.5, -- Sedans
[2] = 0.5, -- SUVs
[3] = 0.5, -- Coupes
[4] = 0.5, -- Muscle
[5] = 0.5, -- Sports Classics
[6] = 0.5, -- Sports
[7] = 0.5, -- Super
[8] = 0.5, -- Motorcycles
[9] = 0.5, -- Off-road
[10] = 0.5, -- Industrial
[11] = 0.5, -- Utility
[12] = 0.5, -- Vans
[13] = 0.5, -- Cycles
[14] = 0.5, -- Boats
[15] = 0.5, -- Helicopters
[16] = 0.5, -- Planes
[17] = 0.5, -- Service
[18] = 0.5, -- Emergency
[19] = 0.5, -- Military
[20] = 0.5, -- Commercial
[21] = 0.5, -- Trains
[22] = 0.5, -- Open Wheel
[VehicleClasses.COMPACTS] = 0.5,
[VehicleClasses.SEDANS] = 0.5,
[VehicleClasses.SUVS] = 0.5,
[VehicleClasses.COUPES] = 0.5,
[VehicleClasses.MUSCLE] = 0.5,
[VehicleClasses.SPORTS_CLASSICS] = 0.5,
[VehicleClasses.SPORTS] = 0.5,
[VehicleClasses.SUPER] = 0.5,
[VehicleClasses.MOTORCYCLES] = 0.5,
[VehicleClasses.OFF_ROAD] = 0.5,
[VehicleClasses.INDUSTRIAL] = 0.5,
[VehicleClasses.UTILITY] = 0.5,
[VehicleClasses.VANS] = 0.5,
[VehicleClasses.CYCLES] = 0.5,
[VehicleClasses.BOATS] = 0.5,
[VehicleClasses.HELICOPTERS] = 0.5,
[VehicleClasses.PLANES] = 0.5,
[VehicleClasses.SERVICE] = 0.5,
[VehicleClasses.EMERGENCY] = 0.5,
[VehicleClasses.MILITARY] = 0.5,
[VehicleClasses.COMMERCIAL] = 0.5,
[VehicleClasses.TRAINS] = 0.5,
[VehicleClasses.OPEN_WHEEL] = 0.5
},

-- Carjack Settings
carjackEnable = true, -- Enables the ability to carjack pedestrian vehicles, stealing them by pointing a weapon at them
carjackingTimeInMs = 7500, -- Time it takes to successfully carjack in miliseconds
delayBetweenCarjackingsInMs = 10000, -- Time before you can attempt another carjack in miliseconds
carjackChance = { -- Probability of successful carjacking based on weapon used
[2685387236] = 0.0, -- melee
[416676503] = 0.5, -- handguns
[-957766203] = 0.75, -- SMG
[860033945] = 0.90, -- shotgun
[970310034] = 0.90, -- assault
[1159398588] = 0.99, -- LMG
[3082541095] = 0.99, -- sniper
[2725924767] = 0.99, -- heavy
[1548507267] = 0.0, -- throwable
[4257178988] = 0.0, -- misc
-- Add more weapon IDs and probabilities as needed
[WeaponTypeGroups.MELEE] = 0.0,
[WeaponTypeGroups.HANDGUN] = 0.5,
[WeaponTypeGroups.SMG] = 0.75,
[WeaponTypeGroups.SHOTGUN] = 0.90,
[WeaponTypeGroups.RIFLE] = 0.90,
[WeaponTypeGroups.LMG] = 0.99,
[WeaponTypeGroups.SNIPER] = 0.99,
[WeaponTypeGroups.HEAVY] = 0.99,
[WeaponTypeGroups.THROWABLE] = 0.0,
[WeaponTypeGroups.MISC] = 0.0,
},

-- Hotwire Settings
hotwireChance = {
[0] = 0.5, -- Compacts
[1] = 0.5, -- Sedans
[2] = 0.5, -- SUVs
[3] = 0.5, -- Coupes
[4] = 0.5, -- Muscle
[5] = 0.5, -- Sports Classics
[6] = 0.5, -- Sports
[7] = 0.5, -- Super
[8] = 0.5, -- Motorcycles
[9] = 0.5, -- Off-road
[10] = 0.5, -- Industrial
[11] = 0.5, -- Utility
[12] = 0.5, -- Vans
[13] = 0.5, -- Cycles
[14] = 0.5, -- Boats
[15] = 0.5, -- Helicopters
[16] = 0.5, -- Planes
[17] = 0.5, -- Service
[18] = 0.5, -- Emergency
[19] = 0.5, -- Military
[20] = 0.5, -- Commercial
[21] = 0.5, -- Trains
[22] = 0.5, -- Open Wheel
}, -- Chance for a successful hotwire by vehicle Class
hotwireChance = { -- Chance for a successful hotwire by vehicle Class
[VehicleClasses.COMPACTS] = 0.5,
[VehicleClasses.SEDANS] = 0.5,
[VehicleClasses.SUVS] = 0.5,
[VehicleClasses.COUPES] = 0.5,
[VehicleClasses.MUSCLE] = 0.5,
[VehicleClasses.SPORTS_CLASSICS] = 0.5,
[VehicleClasses.SPORTS] = 0.5,
[VehicleClasses.SUPER] = 0.5,
[VehicleClasses.MOTORCYCLES] = 0.5,
[VehicleClasses.OFF_ROAD] = 0.5,
[VehicleClasses.INDUSTRIAL] = 0.5,
[VehicleClasses.UTILITY] = 0.5,
[VehicleClasses.VANS] = 0.5,
[VehicleClasses.CYCLES] = 0.5,
[VehicleClasses.BOATS] = 0.5,
[VehicleClasses.HELICOPTERS] = 0.5,
[VehicleClasses.PLANES] = 0.5,
[VehicleClasses.SERVICE] = 0.5,
[VehicleClasses.EMERGENCY] = 0.5,
[VehicleClasses.MILITARY] = 0.5,
[VehicleClasses.COMMERCIAL] = 0.5,
[VehicleClasses.TRAINS] = 0.5,
[VehicleClasses.OPEN_WHEEL] = 0.5
},
timeBetweenHotwires = 5000, -- Time in milliseconds between hotwire attempts
minHotwireTime = 20000, -- Minimum hotwire time in milliseconds
maxHotwireTime = 40000, -- Maximum hotwire time in milliseconds
Expand Down
Loading
Loading