[PAID] - [STANDALONE / ESX / QBCORE / QBOX] Rc vehicles + script

This script adds remote-controlled (RC) vehicles to your FiveM server.

Watch the video here :point_right: Youtube :point_left:
Purchase here :point_right: tebex store :point_left:
Inventory items


Object placed on hands when using the item





List of availables vehicles

You see your clone on the minimap while driving

You see your vehicle on the minimap when not driving


Starting loosing the signal

Signal loss

Features

  • Auto detection framework (ESX / QBCore / QBOX / Standalone)
  • Inventory Compatible:
    • ox_inventory
    • qb_inventory
    • esx_inventory (menu in es_extended)
  • Adds 5 different RC vehicles to your server:
    • RC Tampa
    • RC NERO
    • RC Formula
    • RC Trophy Truck
    • RC Bandito
  • Each vehicle is a usable item in the inventory
  • Custom images for each RC vehicle in the inventory

RC Vehicle Script Explanation

This script allows players to control remote-controlled (RC) vehicles in a game environment. Here’s how it works:

  1. Spawning the RC Vehicle:
  • Players can use an RC vehicle item from their inventory.
  • The script creates a prop of the RC vehicle and attaches it to the player’s hand.
  • Players can then place the RC vehicle on the ground at a desired location.
  1. Creating a Clone:
  • When the player starts controlling the RC vehicle, a clone of the player is created.
  • This clone mimics the player’s appearance and holds a tablet prop to simulate remote control.
  1. Vehicle Control:
  • The player’s view switches to the RC vehicle, allowing them to drive it around.
  • A blip is added to the map to show the RC vehicle’s location.
  1. Signal Loss Mechanic:
  • As the RC vehicle moves away from the clone, a signal loss effect is applied.
  • This effect increases in intensity with distance, simulating real-world RC limitations.
  • Beyond a certain distance, the player loses control of the vehicle.
  1. Visual Effects:
  • The script applies a “RemixDrone” timecycle modifier to simulate the view through an RC camera.
  • The effect’s intensity changes based on the signal strength.
  1. Player Interactions:
  • Players can stop controlling the RC vehicle at any time.
  • If within range, they can resume control or pick up the RC vehicle.
  • Picking up the vehicle returns it to the player’s inventory.
  1. Safety Features:
  • The RC vehicle is invincible to prevent damage or destruction.
  • Players can’t access their inventory while controlling the RC vehicle.

This script provides a realistic and immersive RC vehicle experience, with features like signal loss and visual effects adding depth to the gameplay.

Dependencies

Framework

ESX - QBCore - QBOX

Everything is ./bridge folder comes preconfigured and not encrypted so you can edit as needed.

Standalone

Standalone is configured with minimal functionnality (command /rc <model> to use the rc).

For standalone framework Call this export in regard to use the script correctly:

  exports['twRc']:useRcItem(model)

Installation

ox_inventory:

  • Add the following item definitions to your ox_inventory/data/items.lua
["rctampa2"] = {
  label = "Rc Tampa",
  weight = 1000,
  stack = false,
  close = true,
  description = "Control remotely a little rc car",
  client = {
    image = "rctampa2.png",
    export = 'twRc.useRcItem'
  }
},

["rcnero2"] = {
  label = "RC NERO",
  weight = 1000,
  stack = false,
  close = true,
  description = "Control remotely a little rc car",
  client = {
    image = "rcnero2.png",
    export = 'twRc.useRcItem'
  }
},

["rcopenwheel2"] = {
  label = "RC Formula",
  weight = 1000,
  stack = false,
  close = true,
  description = "Control remotely a little rc car",
  client = {
    image = "rcopenwheel2.png",
    export = 'twRc.useRcItem'
  }
},

["rctrophytruck"] = {
  label = "RC Trophy Truck",
  weight = 1000,
  stack = false,
  close = true,
  description = "Control remotely a little rc car",
  client = {
    image = "rctrophytruck.png",
    export = 'twRc.useRcItem'
  }
},

["rcbandito"] = {
  label = "RC Bandito",
  weight = 1000,
  stack = false,
  close = true,
  description = "Control remotely a little rc car",
  client = {
    image = "rcbandito.png",
    export = 'twRc.useRcItem'
  }
},

  • Move the image files from the ./setup folder to ox_inventory/web/images/.

qb_inventory:

  • Add the following item definition to your qb-core/shared/items.lua.
  -- RC Vehicles
  rctampa2                    = { name = 'rctampa2', label = 'RC Tampa', weight = 1000, type = 'item', image = 'rctampa2.png', unique = true, useable = true, shouldClose = true, description = 'Control remotely a little rc car' },
  rcnero2                     = { name = 'rcnero2', label = 'RC NERO', weight = 1000, type = 'item', image = 'rcnero2.png', unique = true, useable = true, shouldClose = true, description = 'Control remotely a little rc car' },
  rcopenwheel2                = { name = 'rcopenwheel2', label = 'RC OpenWheel', weight = 1000, type = 'item', image = 'rcopenwheel2.png', unique = true, useable = true, shouldClose = true, description = 'Control remotely a little rc car' },
  rctrophytruck               = { name = 'rctrophytruck', label = 'RC Trophy Truck', weight = 1000, type = 'item', image = 'rctrophytruck.png', unique = true, useable = true, shouldClose = true, description = 'Control remotely a little rc car' },
  rcbandito                   = { name = 'rcbandito', label = 'RC Bandito', weight = 1000, type = 'item', image = 'rcbandito.png', unique = true, useable = true, shouldClose = true, description = 'Control remotely a little rc car' },
  • Move the image files from the ./setup folder to qb-inventory/html/images.

esx_inventory (menu in es_extended)

  • Execute the sql file from the ./setup folder.

|-------------------------------------|-----------------------------------|
| Assets are accessible | No |
| Code is accessible | Partialy (bridge only) |
| Subscription-based | No |
| Lines (approximately) | 1300 |
| Requirements | OneSync, ox_lib |
|Support | Yes|

2 Likes

Crazy :smiley: man funny good for a fill in in your server

1 Like

Really nice bro :slight_smile:
Our players like it so much :smiling_face_with_three_hearts:

1 Like