Configuration

This document provides an overview of the configuration options available for the KF_VehicleShop script. Each section is explained in detail to help you customize the vehicle shop according to your needs.

General Configuration

  • Config.Debug: Enable or disable debug mode. Default is false.

  • Config.Locale: Set the default locale. Default is 'en'.

  • Config.Locales: Table to store different locales.

  • Config.DefaultRoutingBucket: Default routing bucket. Default is 0.

IPLs (Interior Proxy Library)

  • Config.LoadIpls: Load IPLs from kf_ipl resource if bob74_ipl is not started.

  • Config.IPLsToLoad: List of IPLs to load.

Vehicle Plate Text

  • Config.VehiclesPlateText: Default plate text for the vehicles (1-8 characters). Default is ' KFSHOP '.

Locations

  • Config.Locations: Table containing different vehicle shop locations and their configurations.

Markers

  • EnterMarker: Configuration for the enter marker.

  • ExitMarker: Configuration for the exit marker.

  • ChangeVehicles: Configuration for the change vehicles marker.

Catalogues

  • Config.Locations.Catalogues: Table containing different catalogues with their names, labels, and colors.

Blip

  • Config.Locations.Blip: Configuration for the blip on the map.

Bought Vehicle Spawns

  • Config.Locations.BoughtVehicleSpawns: List of spawn points for bought vehicles.

PolyZone

  • Config.Locations.PolyZone: Configuration for the PolyZone area.

Test Drive Spawns

  • Config.Locations.TestDrivePositions: List of spawn points for test drive vehicles.

Vehicles List and Catalogue

  • Config.Locations.Vehicles: Table containing the list of vehicles and their positions in the catalogue.

3D Text

  • Config.Draw3DTextDistance: Distance to draw the 3D text from the vehicle. Default is 5.0.

  • Config.Draw3DTextInteractDist: Distance to interact with the vehicle. Default is 2.0.

  • Config.Draw3DTextScale: Default scale for the 3D text. Default is 0.4.

  • Config.Draw3DTextOffset: Offset for the 3D text. Default is vector3(0.0, 0.0, 1.5).

  • Config.Draw3DTextRowOffset: Offset between rows of the 3D text. Default is 0.1.

Keybinds

  • Config.BuyVehicleKey: Key to buy the vehicle. Default is 38 (E).

  • Config.TestDriveKey: Key to test drive the vehicle. Default is 47 (G).

  • Config.TestDriveEndKey: Key to end the test drive. Default is 47 (G).

Fade Effects

  • Config.TeleportFade: Enable or disable teleport fade effect. Default is true.

  • Config.TeleportFadeDuration: Duration of the fade effect in milliseconds. Default is 500.

  • Config.SwitchVehiclesFade: Enable or disable switch vehicles fade effect. Default is true.

  • Config.SwitchVehiclesFadeDuration: Duration of the fade effect in milliseconds. Default is 500.

  • Config.TestDriveFade: Enable or disable test drive fade effect. Default is true.

  • Config.TestDriveFadeDuration: Duration of the fade effect in milliseconds. Default is 500.

Vehicle Test Drive

  • Config.TestDriveEnabled: Enable or disable test drive feature. Default is true.

  • Config.TestDriveDuration: Duration of the test drive in milliseconds. Default is nil.

  • Config.EnableTestDriveMods: Enable or disable test drive mods. Default is true.

  • Config.DisableCollisions: Enable or disable collisions during test drive. Default is true.

  • Config.TestDriveInvincible: Make the vehicle invincible during test drive. Default is true.

Payment Functions

  • Config.PayFunctions: Table containing different payment methods and their functions.

3D Text for Markers

  • Config.Use3DTextForMarkers: Enable or disable 3D text for markers. Default is false.

Text UI

  • Config.TextUI: Table containing functions to show and hide text UI.

Notifications

  • Config.ClientNotify: Function to display client notifications.

  • Config.ServerNotify: Function to display server notifications.

3D Text for Vehicles

  • Config.DrawText3D: Function to draw 3D text near a vehicle.

2D Text for Vehicles

  • Config.DrawText2D: Function to draw 2D text near a vehicle.

Help Text

  • Config.DrawHelpText: Function to display help text.

Confirmation Dialog

  • Config.ConfirmationDialog: Function to display a confirmation dialog when buying a vehicle.

Vehicle Assignment

  • Config.GiveVehicle: Function to assign a vehicle to a player after purchase.

Player Identifier

  • Config.GetPlayerIdentifier: Function to get the player identifier.

Player Loaded

  • Config.PlayerLoaded: Function to check if the player is loaded.

Vehicle Properties

  • Config.GetVehicleProperties: Function to get the vehicle properties.

Generate Plate

  • Config.GeneratePlate: Function to generate a random vehicle plate.

Locales

  • Config.Locales: Table containing different locales and their translations.

Last updated