Lod Resources
  • Welcome to Lod Resources!
  • Tutorials
    • Claim Purchase
    • Youtube API Key
    • Common Errors
  • TUNER TABLET
    • Introduction
  • Installation & Configuration
  • Car Tablet
    • Introduction
    • Installation & Configuration
Powered by GitBook

2024-2025 Lod Resources

On this page
  • Installation
  • Configuration
  • Basic Configuration
  • Compatibility Settings
  • Auto Pilot Settings
  • Available Driving Styles
  1. Car Tablet

Installation & Configuration

Installation

  1. Unzip the ld-cartablet and xsound

  2. Drag the ld-cartablet and xsound folder to your recources folder

  3. Setup the .sql file in the file

  4. Add the following line of code to your server.cfg file, starting after oxlib and oxmysql

ensure xsound
ensure ld-tablet

Configuration

Basic Configuration

The basic configuration section controls fundamental script settings.

Config.Language = "en" 

Config.Language

  • Description: Sets the language for all menu text

  • Available Values: "en" (English), "es" (Spanish), "fr" (French), "de" (German), "it" (Italian), "pt" (Portuguese)

Config.Debug

  • Description: Enables or disables debug information

  • Available Values: true or false

Compatibility Settings

Speed Unit

You can define which speed unit is displayed in the tablet interface.

Config.Compatibility = {    speedUnit = 'KMH'      }

speedUnit

  • Description: Unit of speed displayed in the tablet interface

  • Available Values: 'KMH' (kilometers per hour), 'MPH' (miles per hour)

Ready Locations

Ready Locations are predefined destinations that can be quickly accessed through the tablet interface.

   readyLocations = {
        {
            locationName = "LSPD",
            locationDescription = "Los Santos Police Dept.",
            locationCoords = vector3(425.5486, -979.4305, 35.0797),
            locationBlip = "https://docs.fivem.net/blips/radar_police_station.png"
        },
        {
            locationName = "LSMD",
            locationDescription = "Los Santos Medical Dept.",
            locationCoords = vector3( 289.0137, -583.7592, 56.1946),
            locationBlip = "https://docs.fivem.net/blips/radar_hospital.png"
        },
        {
            locationName = "FIB",
            locationDescription = "FIB Dept.",
            locationCoords = vector3(98.2411, -743.5864, 49.1120),
            locationBlip = "https://docs.fivem.net/blips/radar_police_station.png"
        },
        {
            locationName = "Burger Shot",
            locationDescription = "Eat burger its delicious",
            locationCoords = vector3(-1182.2246, -890.8609, 23.4415),
            locationBlip ="https://docs.fivem.net/blips/radar_fbi_officers_strand.png"
        },
    },

Each location has the following properties:

locationName

  • Description: Short name of the location

  • Example: "LSPD"

locationDescription

  • Description: Detailed description

  • Example: "Los Santos Police Dept."

locationCoords or coords

  • Description: Map coordinates as vector3

  • Example: vector3(425.5486, -979.4305, 35.0797)

locationBlip

  • Description: Icon URL for the location

  • Example: "https://docs.fivem.net/blips/radar_police_station.png"

Lights Colors

Define custom RGB colors for vehicle lights with this configuration section:

lightsColor = {    { r = 255, g = 0, b = 0 },     -- Red    { r = 0, g = 255, b = 0 },     -- Green    { r = 0, g = 0, b = 255 },     -- Blue    -- More colors...}

Each color is defined as an RGB value with components ranging from 0-255. You can add as many custom colors as you need.

Auto Pilot Settings

The autopilot system has several configurable options:

autoPilot = {    autoPilotMaxSpeed = 50,    drivingStyles = {        -- Various driving styles...    }}

autoPilotMaxSpeed

  • Description: Maximum speed (in units defined by speedUnit) when autopilot is engaged

  • Value Range: Numeric value (e.g., 50)

Driving Styles

Each driving style defines a specific behavior for the autopilot. You can combine different flags to create custom driving behaviors.

{    title = "Stop before vehicles",    description = "Driver stops in time to avoid hitting vehicles ahead.",    flag = 1,}

title

  • Description: Short name of the driving style

description

  • Description: Detailed explanation of the behavior

flag

  • Description: Numeric value that activates this behavior

Driving style flags can be combined by adding their values together to create a custom driving behavior.

Available Driving Styles

Stop before vehicles

  • Flag Value: 1

  • Description: Driver stops in time to avoid hitting vehicles ahead

Stop before pedestrians

  • Flag Value: 2

  • Description: Driver stops to avoid hitting pedestrians walking on the road

Avoid vehicles

  • Flag Value: 4

  • Description: Driver maneuvers to avoid collisions with other vehicles

Avoid empty vehicles

  • Flag Value: 8

  • Description: Driver also avoids driverless or abandoned vehicles

Avoid pedestrians

  • Flag Value: 16

  • Description: Driver tries to keep distance from pedestrians

Avoid objects

  • Flag Value: 32

  • Description: Driver makes an effort not to hit objects on the road

Stop at traffic lights

  • Flag Value: 128

  • Description: Driver stops at red lights, proceeds at green lights

Use signals

  • Flag Value: 256

  • Description: Driver uses turn signals when making turns

Can drive in opposite direction

  • Flag Value: 512

  • Description: Driver may temporarily use the opposite lane

Use shortest path

  • Flag Value: 262144

  • Description: Driver largely ignores restrictions, may use dirt roads

Careless

  • Flag Value: 524288

  • Description: Driver overtakes when possible and drives more aggressively

Ignore roads

  • Flag Value: 4194304

  • Description: Driver tries to reach destination without using roads

Ignore all road planning

  • Flag Value: 16777216

  • Description: Driver tries to reach the destination in a straight line

Avoid highways

  • Flag Value: 536870912

  • Description: Driver uses highways only if there is no other alternative

PreviousIntroduction

Last updated 25 days ago