๐งGeneral Configuration
This guide will walk you through the core configuration options for Dynyx RC Cars & Drones. Each section below explains what the setting does, when youโd want to change it, and recommended values for
๐ Language
Config.Lan = 'en'
Choose which language you want all UI text, notifications, and warnings to use. Available options:
en
โ English (default)es
โ Spanishfr
โ Frenchde
โ German
๐ก Tip: You can switch languages live and test them by restarting the resource after changing this value.
๐งฉ Framework Integrations
Config.Notifications = "ox_lib"
Config.Inventory = "ox_inventory"
Config.Target = "ox_target"
Config.ProgressBar = "ox_lib"
Choose which systems your server uses:
Notifications:
"ox_lib"
or"qb-core"
Inventory:
"ox_inventory"
,"qb-inventory"
, or"ps-inventory"
Target:
"ox_target"
or"qb-target"
Progress Bars:
"ox_lib"
or"qb-core"
๐ก This makes the script framework-agnostic. Match these to your server setup and everything will just work.
๐ฏ HUD Toggle
Config.HideHud = false
When true
, hides your external HUD (health/armor bars, speedometer, etc.) while flying drones, driving RC cars, or using RC Customs.
Be sure to edit the ToggleHud
function at the bottom of the config to work with your HUD resource.
๐ช RC Customs
Teleport Location
Config.rcCustomsCoords = vector4(-146.3614, -596.6284, 166.0000, 270.2807)
This is where the player gets teleported when they open the RC Customization menu.
Use
/coords
in-game to find a new spot.The last number (
270.2807
) is the heading (direction the player faces).
Customization Zones
Config.RCCustomizationZones = {
{ center = vec3(735.06, -1065.32, 22.16), radius = 6.0 },
{ center = vec3(1991.35, 3793.53, 32.18), radius = 6.0 },
}
Add as many zones as you want where players can access RC Customs:
center
โ Location of the zone.radius
โ Size of the interaction area.
๐ก Ideal for placing city + county customization shops.
Target/Bench Zones
Config.RCTargetCustomizationZones = {
{
center = vec3(-323.60, -129.49, 39.01),
radius = 1.0,
debug = false,
groups = { 'mechanic', 'bennys' },
citizenID = { 'ABC12345', 'XYZ67890' },
CanRepairDrone= true,
CanRepairRcCar= true,
Prop = {
enabled = false,
model = `gr_prop_gr_bench_04a`,
heading = 0.0,
offset = vec3(0.0, 0.0, 0.0),
frozen = true,
invincible = true,
distance = 2.0,
},
},
}
These are target interaction zones where players can repair or customize RC cars and drones.
groups โ Restrict to jobs (e.g. mechanic shops).
citizenID โ Restrict to specific players.
Prop โ Spawns a physical bench/prop at the zone for immersion.
debug โ Turn
true
while mapping zones so you can see the circle in-game.
๐ RC Car Definitions
Config.RcCars = {
['rc_car'] = {
maxRange = 300,
batteryItem = 'rccar_battery',
BaseBattery = 90.0,
BaseHealth = 95.0,
Abilities = {
canToggleCamera = true,
nightVision = true,
thermalVision = true,
},
Collision = { Enabled = true, Min = 10, Max = 25 },
Repair = { enabled = true, costPerPercent= 10, minimumCost= 5000 },
Speed = { Enabled = true, MaxSpeed= 45.0, Acceleration= 0.22, BrakeForce= 0.30 },
}
}
maxRange โ How far the RC car can go before losing signal.
batteryItem โ The inventory item used to recharge.
BaseBattery / BaseHealth โ Starting values when spawned.
Abilities โ Enable/disable features like camera toggle or thermal vision.
Collision โ Damage on impact (enable/disable + min/max damage).
Repair โ How much repairs cost per % health restored.
Speed โ Custom handling for the RC car (top speed, acceleration, brakes).
๐ฐ๏ธ Drone Definitions
Config.Drones = {
['drone'] = {
maxRange = 300,
batteryItem = 'drone_battery',
BaseBattery = 100.0,
BaseHealth = 100.0,
Abilities = {
canTogglePOV = true,
nightVision = false,
thermalVision = false,
spotlight = false,
},
PlayerShotImpact = { Enabled = true, hitDamageMin = 2, hitDamageMax = 5 },
Collision = { Enabled = true, Min = 10, Max = 25 },
Water = { Enabled = true, DamagePerSecond = 25 },
FlightTuning = { maxSpeed=0.25, accel=0.012, decel=0.012 },
}
}
maxRange โ Signal range before disconnection.
batteryItem โ Inventory item for swapping/recharging batteries.
Abilities โ Enable camera POV, night vision, thermal, and spotlight.
PlayerShotImpact โ Damage taken from bullets.
Collision & Water โ Damage from impacts and water contact.
FlightTuning โ Adjust speed, acceleration, sensitivity.
๐ฆ Spotlight Settings
Config.SpotlightSettings = {
Color = { r = 255, g = 255, b = 200 },
Distance = 35.0,
Brightness = 12.0,
Radius = 20.0,
}
Configure the police drone spotlight: color, brightness, distance, and radius. Perfect for tactical surveillance.
โ
Summary
This config is fully modular โ you can:
Add or remove zones.
Limit zones by jobs or citizen IDs.
Tune RC car handling and drone flight feel.
Enable or disable advanced features like thermal vision, spotlight, and collision damage.
๐ก Recommendation: Always enable debug = true
when placing zones, test your teleport coordinates, and tweak flight/handling values until it feels natural for your server.
Last updated