Installation & Configuration
Installation
Unzip the ld-cartablet and xsound
Drag the ld-cartablet and xsound folder to your recources folder
Setup the .sql file in the file
Add the following line of code to your server.cfg file, starting after oxlib and oxmysql
Configuration
Basic Configuration
The basic configuration section controls fundamental script settings.
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
orfalse
Compatibility Settings
Speed Unit
You can define which speed unit is displayed in the tablet interface.
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.
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:
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:
autoPilotMaxSpeed
Description: Maximum speed (in units defined by
speedUnit
) when autopilot is engagedValue 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
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
Last updated