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.
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
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 commenting 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 ”commented out help text” at the end of each line so you can understand what each config option does.
Introducing our new 'auto_detect' feature! It automatically identifies your Framework and applies the appropriate default settings.
Before starting this resource on your main/live server, we highly advise you to configure your key binds because this resource uses Fivem's Key Mapping.
Where can I configure my key binds?
You can configure key binds in the Keys and Commands section near the bottom of the
[cd_vehiclecontrol/configs/config.lua]
.
Why do I need to do this?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 pause menu settings. 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 Default Keybinds for this resource.
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. - 2.This screenshot shows the 2 functions that must be modified in the
[configs/client_customise_me.lua]
file. Read the ”commented out help text” for further information.
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.
These keys can be modified and/or disabled in the Keys and Commands section of the
[configs/config.lua]
.Key | Description |
---|---|
K | Open the vehicle control's UI. |
These chat commands can be renamed and/or disabled in the Keys and Commands section of the
[configs/config.lua]
.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. |
These events are completely optional; you can use them if needed.
client-side to client-side
server-side to client-side
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)
🔔 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.