βοΈ Configuration Overview#
config.lua is the main configuration file for FRKN-Racing v2.
All gameplay rules, rewards, systems, NPCs, and interaction settings are controlled from this file.
π General Settings#
language = 'en', -- tr , en , de
MoneyType = 'cash',
VehicleTableName = 'player_vehicles',
FlagProp = "tr_prop_tr_flag_01a",
- language: Sets the system language
- MoneyType: Currency used for race fees and rewards
- VehicleTableName: Database table where player vehicles are stored
- FlagProp: Flag prop used in race visuals
π₯οΈ HUD Control#
HudOpen = function()
-- exports['esx_hud']:HudToggle(true)
end,
HudClose = function()
-- exports['esx_hud']:HudToggle(false)
end,
- Used to control your server HUD when the racing menu opens or closes
- Add your own HUD exports here
π Item System#
Item = {
config = false,
["racechip"] = "racechip",
["trackchip"] = "trackchip",
},
- Set config = true to enable item-based access
- Controls required items for joining races and creating tracks
π₯ Crew System#
CrewSystem = {
Money = 3000,
RewardControlTime = 10,
},
- Money: Cost to create a crew
- RewardControlTime: Cooldown (in minutes) before managing crew rewards again
π§ Race Line System#
RaceLineSettings = {
enabled = true,
formulaOnly = true,
arrowDistance = 5.0,
},
- enabled: Enables or disables the racing line
- formulaOnly: Shows racing line only in Formula races
- arrowDistance: Distance between arrows (affects performance)
β±οΈ Auto Race System#
AutoRace = {
{
raceId = 26,
time = "11:10"
},
{
raceId = 5,
time = "20:52"
}
},
- Automatically starts races at specific server times
- raceId must match the race ID in the database
π XP & Rating#
WinXP = 100,
RatingWin = 40,
Rating = {
40, 30, 20, 10, 0, -5, -10
},
XP = {
50, 40, 30, 20, 10, 5, 3
},
- WinXP / RatingWin: Rewards given to the race winner
- XP / Rating tables: Distribution based on finishing position
π Weekly Reward#
WeeklyReward = {
type = "car",
item = {name = "racechip", amount = 10},
car = "adder",
money = 10000
},
- Weekly reward system
- type can be
money,item, orcar
π Race Gameplay Settings#
ManuelSystem = true,
RacePrizeType = "car",
EndOfRaceMarker = true,
MinUser = 1,
StartTime = 2,
DisqualifiedTime = 20,
DisqualifiedPlateCheck = false,
- Manual gear system
- Race prize type
- Finish marker display
- Minimum players required
- Start freeze duration
- Disqualification rules
π Sound Settings#
Sound = {
EnableCheckpointSound = true,
CheckpointSound = "heartmonbeat",
CheckpointSoundVolume = 0.5
},
- Controls checkpoint sound effects
π« Drift Blacklist#
DriftBlacklist = {
'adder',
'bullet',
'cheetah',
},
- Vehicles listed here cannot enter drift mode
π Notifications#
Notify = {
["join"] = "You successfully participated in the race",
["disqualified"] = "You are disqualified from the race"
},
- Custom in-game notification messages
π Authorization System#
Auth = {
config = false,
authorization = {
'AZI27977',
}
},
- Restricts script usage to specific authorization codes
π― Target System#
Interaction = {
Target = 'qb-target'
},
- Use
qb-targetif you are using qb-target - Use
ox_targetif you are using ox_target
π§ Racing NPC#
RacingNPC = {
enabled = true,
coords = vector4(2277.72, 7880.67, 423.52, 239.89),
model = "s_m_y_devinsec_01",
}
- NPC used for teleporting or recovering stuck players
π οΈ Handling Presets#
handlingPresets = {
["sport"] = {
fInitialDriveForce = 0.35,
fBrakeForce = 1.2
},
["drift"] = {
fInitialDriveForce = 0.25,
fSteeringLock = 65.0
}
},
- Defines vehicle handling behavior for different race types
π Notes#
- Always restart the server after config changes
- All settings are optional and customizable
- FRKN-Racing v2 is designed to be modular and expandable