LogoLogo
  • Codesign Documentation
  • Information
    • Discord Roles
    • FiveM Asset Escrow System
    • Authentication & Transfers
  • Coding Information
    • Register Key Mapping
    • Code Snippets
    • Self Debugging
  • Paid scripts
    • Arm Wrestling
      • Configs, Locales & SQL
    • Car HUD
      • Configs, Locales & SQL
    • CCTV Cameras
      • Configs, Locales & SQL
    • Darts
      • Configs, Locales & SQL
    • Dispatch
      • Configs, Locales & SQL
      • Resource Integration
    • Door Lock
      • Configs, Locales & SQL
    • Garage
      • Keys/Chat/Events/Exports
      • Optional Features
      • Configs, Locales & SQL
      • Resource Integration
    • Gun Range
      • Configs, Locales & SQL
    • Identity
      • Configs, Locales & SQL
    • Multicharacter
      • Configs, Locales & SQL
    • Player HUD
      • Configs, Locales & SQL
    • Props
      • Configs, Locales & SQL
    • Radar
      • Configs, Locales & SQL
    • Spawn Select
      • Configs, Locales & SQL
    • Terminal Hacker
      • Configs, Locales & SQL
    • Vehicle Control
      • Configs, Locales & SQL
    • VIP Shop
      • Configs, Locales & SQL
  • Free Scripts
    • Easytime
      • Keys/Chat/Events/Exports
      • Optional Features
      • Configs & Locales
    • Drawtext UI
    • Devtools
    • Keymaster - Minigame
    • Staff Support
    • Notifications
Powered by GitBook
LogoLogo

Codesign Software © All rights reserved

On this page
  • INSTALLATION GUIDE
  • Step 0 - First Steps
  • Step 1 - Fxmanifest
  • Step 2 - Configure Resource
  • Step 3 - Configure Key Binds
  • Step 4 - Vehicle Lock
  • INFORMATION
  • Default Key Binds
  • Chat Commands
  • Events
  • COMMON ISSUES
  • ERROR CODES
  • CHANGELOG

Was this helpful?

  1. Paid scripts

Vehicle Control

Step-by-step installation guide, common issues & solutions, code snippets, error codes, config previews, locales previews, SQL previews, and changelogs; all in 1 easily accessible place.

PreviousConfigs, Locales & SQLNextConfigs, Locales & SQL

Last updated 23 days ago

Was this helpful?

Translate

INSTALLATION GUIDE

Step 0 - First Steps

1. Download your resource from .

2. Unzip the cd_vehiclecontrol.zip folder and place this folder in your server's resource folder.

3. Add the resource to your server start config (server.cfg): ensure cd_vehiclecontrol. If you are using a framework, it must be placed anywhere below your framework resource e.g., es_extended, not above.

ensure es_extended
ensure cd_vehiclecontrol

Step 1 - Fxmanifest

Step 2 - Configure Resource

Introducing our new 'auto_detect' feature! It automatically identifies your Framework and applies the appropriate default settings.

Step 3 - Configure Key Binds

Where can I configure my key binds?

Why do I need to do this?

Step 4 - Vehicle Lock

What is the vehicle lock display?

This clickable button on the UI allows players to lock/unlock their vehicle from the UI itself.

Do you want to use the vehicle lock display?

NO = You can skip this step.

YES = A few small modifications are required; read below for more information.

  1. Enable Config.VehicleLock in the [configs/config.lua] file.

Do you use cd_garage and its built-in keys feature?

Then you don't need to make any changes. We have already pre-configured this for you.

INFORMATION

Default Key Binds

Key
Description

K

Open the vehicle control's UI.

Chat Commands

The exact usage for each command will be displayed in the chat suggestions when using the commands in-game.

Command
Description

/vehcontrol

Open the vehicle control's UI.

Events

These events are completely optional; you can use them if needed.

Open the UI

Open the vehicle control's UI.
TriggerEvent('cd_vehiclecontrol:OpenUI')

Close the UI

Close the vehicle control's UI.
TriggerEvent('cd_vehiclecontrol:CloseUI')

Open the UI

Open the vehicle control's UI.
TriggerClientEvent('cd_vehiclecontrol:OpenUI', source)

Close the UI

Close the vehicle control's UI.
TriggerClientEvent('cd_vehiclecontrol:CloseUI', source)

COMMON ISSUES

🔔 Folder Name Make sure the name of the folder is cd_vehiclecontrol.

🔔 Encrypted Files Do not edit the encrypted files in any way.

Some extras such as lightbars not working?

eg., the lightbar extra for example can be toggled off, but when toggled back on it's not visible.

✔️ Sometimes extras such as lightbars will only be visible if the car is fully repaired first.

To fix this you can set Config.Extras.extras_workaround_fix to true in the configs/config.lua.

There is a downside with this though; because to overcome this issue we fully repair the vehicle. After the extra has been enabled we re-aply most of the damage such as broken doors, broken windows and popped tyres. But we are unable to re-apply the minor visual body damage such as dints, bumps or scratches. So some players may abuse this to repair minor visual body damage on their vehicles.

ERROR CODES

N/A

5467 - This means the GetVehicleLockState() function in the configs/client_customise_me.lua is is not returning what the script expects. It should return either “locked” or “unlocked” as a string.

9833 - This means the DoesPlayerHaveKeys() function in the configs/client_customise_me.lua is not returning what the script expects. It should be returning either true or false as a boolean. This usually happens when you have enabled the Config.VehicleLock in the config, but you have not edited the function to work with your vehicle lock script.

CHANGELOG

Files Changed

Not every update requires you to replace the whole folder. We do this because we understand it's a pain to redo the configs for every update.

  • All Files - This means you should delete your old cd_vehiclecontrol folder, download and add in the latest version, reconfigure the configs folder and restart your server.

  • All Files Except config.lua - This means you should do all of the above (in the All Files section) but additionally make a backup of the config.lua file and replace the new config.lua file with the one you made a backup of.

  • Specific Files - This means you can copy and paste the SPECIFIC new files over the old ones and restart the server.

Update Type

On rare occasions, you are forced to update to the latest version. Mostly due to authentication updates where the old versions will no longer work.

  • Mandatory - This means you MUST update to this new version, or the old versions will no longer work.

  • Optional - This means it's completely your choice whether you wish to update to the latest version. But we do not offer support for old versions for obvious reasons; they are old.

Skipping Updates

If you are attempting to update to the latest version but have skipped previous updates, you should update all files just to be safe. For example., let's say you are currently on v4.0.1, you did not update when v4.0.2 was released, and now v4.0.3 is released, and you want to update; you should always use the “All Files” update method.

29/06/2022

Files Changed:

Update Type:

Changelog:

STATUS

  • Development Stage: COMPLETE

  • Alpha Test Stage: COMPLETE

  • Beta Test Stage: COMPLETE

26/08/2022

Files Changed:

Update Type:

Changelog:

Add

  • Added a config option to disable the use of toggling liveries, extras or neons on the ui.

  • Disabled the option to toggle extras when in a helicopter.

11/01/2023

Files Changed:

Update Type:

Changelog:

Add

  • Job-restricted Usage: You can allow all players to be able to use this part of the UI to toggle extras and liveries or you can restrict it to certain jobs only (you can choose multiple jobs).

  • Location Restricted Usage: You can allow players to be able to use this part of the UI to toggle extras and liveries anywhere on the map or you can restrict it to certain areas around the map (you can choose multiple locations).

  • Note: The 2 usage-restricting features above^^ can work independently of each other or in combination with each other; (for example., only police and ambulance jobs can use the UI to toggle extras but also they can only do this in certain areas around the map.)

  • Bugged Extras (lightbars) Fix 1: If your vehicle is in full health you will now be able to toggle on the bugged extras such as lightbars.

Edit

  • Changed the default key from N to K as n had some issues with the chat.

09/02/2023

Files Changed:

Update Type:

Changelog:

Add

  • Auto Framework Detection - We have added a new feature we are calling 'auto_detect', which will automatically identify your framework resource and framework notifications and apply the appropriate default settings.

  • Added the option to restrict the use of extras and liveries to certain vehicle models.

  • Added a config option to blacklist neon light colours. By default, all cars have neons enabled and default colours, so we will disable the default colours and only allow custom ones.

  • Added a config option to prevent auto seat shuffle.

Edit

  • Restricted passengers from using the extras, liveries, engine toggle, indicators and neons.

  • Added debug prints.

Fix

  • Fixed the "no NUI callback captured" warnings.

  • Fixed some minor bugs with the UI.

  • Fixed the toggle engine being visible even if you don't have keys.

25/06/2023

Files Changed:

Update Type:

Changelog:

Add

  • Added the ability to use the vehicle control UI when standing outside the vehicle. However, this does have limited options when compared to sitting inside the vehicle.

  • Added Config.Extras.disable_extras_in_heli to allow servers to choose whether they want to disable extras in helicopters (some servers wanted this disabled due to players removing the helicopter blades).

  • Added a function EngineToggled() to the client_customise_me, which is triggered every time the engine is toggled on/off in a vehicle. This is optional and can be used if needed for compatibility with other resources.

  • Added pre-configured notifications for multiple notification resources.

26/06/2023

Files Changed:

fxmanifest.lua
client/client.lua

Update Type:

Changelog:

Fix

  • Fixed extras not working in vehicles.

18/04/2025

Files Changed:

fxmanifest.lua
client/client.lua

Update Type:

Changelog:

Add

  • We now grab livery's from the mod kit as well as the standard get livery native.

  • Clicking the livery you currently have enabled will remove it and set the vehicle to have no livery (or the default livery, depending on the vehicle).

Depending on your framework and dependencies, you may need to make some changes to the [cd_vehiclecontrol/fxmanifest.lua]. We have made this easier by on the lines you possibly need to change.

You MUST read all configurable options inside the [cd_vehiclecontrol/configs/config.lua] file and configure them to suit your server's needs. Please read the at the end of each line so you can understand what each config option does.

The most important sections are the options under the and sections at the top of the config.lua. Everything else is optional.

Before starting this resource on your main/live server, we highly advise you to configure your key binds because this resource uses .

You can configure key binds in the section near the bottom of the [cd_vehiclecontrol/configs/config.lua].

Well long story short;- once a player has joined your server with this resource running you can no longer force change their key binds for this resource through the config.lua, only they can change it in the in-game . Although it will change for the players who join after you have changed it.

The benefit of this system is that it's much more optimised and players can easily change their key binds on keyboards or controllers. You can also check out the for this resource.

shows the 2 functions that must be modified in the [configs/client_customise_me.lua] file. Read the for further information.

These keys can be modified and/or disabled in the section of the [configs/config.lua].

Please make sure you understand how works.

These chat commands can be renamed and/or disabled in the section of the [configs/config.lua].

Please check out our before contacting our support.

If you see an error code not listed below, please open a script support ticket in the .

Bugged Extras (lightbars) Fix 2: Added a new config option Config.Extras.extras_workaround_fix which will also fix this issue on vehicles that are damaged but do have small side effects .

Buy Here
FiveM Forums Post
YouTube Showcase Video
YouTube Walkthrough Video
Click here to translate this page.
How do I change language?
FiveM’s Keymaster
commenting
”commented out help text”
Framework
Important
NEW: Auto Framework Detect!
Fivem's Key Mapping
Keys and Commands
pause menu settings
This screenshot
”commented out help text”
Keys and Commands
Key Mapping
Keys and Commands
Troubleshooting Guide
Codesign Discord
Default Keybinds
#Common Issues