πŸͺΆConfig Settings

βš™οΈ 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

  • Set config = true to enable item-based access

  • Controls required items for joining races and creating tracks


πŸ‘₯ Crew System

  • Money: Cost to create a crew

  • RewardControlTime: Cooldown (in minutes) before managing crew rewards again


🧭 Race Line System

  • enabled: Enables or disables the racing line

  • formulaOnly: Shows racing line only in Formula races

  • arrowDistance: Distance between arrows (affects performance)


⏱️ Auto Race System

  • Automatically starts races at specific server times

  • raceId must match the race ID in the database


πŸ† XP & Rating

  • WinXP / RatingWin: Rewards given to the race winner

  • XP / Rating tables: Distribution based on finishing position


🎁 Weekly Reward

  • Weekly reward system

  • type can be money, item, or car


πŸš— Race Gameplay Settings

  • Manual gear system

  • Race prize type

  • Finish marker display

  • Minimum players required

  • Start freeze duration

  • Disqualification rules


πŸ”Š Sound Settings

  • Controls checkpoint sound effects


🚫 Drift Blacklist

  • Vehicles listed here cannot enter drift mode


πŸ”” Notifications

  • Custom in-game notification messages


πŸ” Authorization System

  • Restricts script usage to specific authorization codes


🎯 Target System

  • Use qb-target if you are using qb-target

  • Use ox_target if you are using ox_target


🧍 Racing NPC

  • NPC used for teleporting or recovering stuck players


πŸ› οΈ Handling Presets

  • 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

Last updated