Tutoriels et guides

Comment installer les voitures complémentaires FiveM

Catégorie Image de FiveM Cars

Adding new vehicles to your FiveM server can significantly enhance the gameplay experience. There are two main types of vehicles you can add: Addon vehicles and Replacement vehicles.

Addon Vehicles vs. Replacement Vehicles

Addon Vehicles: These do not replace any existing GTA 5 vehicles. They are recommended for adding multiple voitures to your server without affecting the default vehicles.

Replacement Vehicles: These replace existing GTA 5 vehicles with new ones. While less common, some players prefer this method for specific purposes.

How to Add an Addon Vehicle

Step-by-Step Instructions

  1. Find and Download the Vehicle Pack
    • Locate a vehicle or vehicle pack you wish to add (e.g., LSPD Mega Pack 229).
    • Download the pack, ensuring you choose the latest ADDON version if given an option.
  2. Prepare Your Server Directory
    • Decide where to place the vehicles in your server directory. A common practice is to use a [voitures] folder within the FiveM directory.
  3. Add the Vehicle Files
    • Drag and drop the main folder containing the flux folder and fxmanifest.lua into your chosen directory.
    • If the pack uses __ressource.lua au lieu de fxmanifest.lua, you may need to create an fxmanifest.lua. Use the example below as a template:
fx_version 'céruléen'
author 'CAR PACK CREATOR'
description '<Department> Vehicle Pack, created by <Creator>!'
jeu 'gta5'

fichiers {
'data/**/*.meta',
}

data_file 'HANDLING_FILE' 'data/**handling*.meta'
data_file 'VEHICLE_METADATA_FILE' 'data/**/vehicles*.meta'
data_file 'CARCOLS_FILE' 'data/**/carcols*.meta'
data_file 'VEHICLE_VARIATION_FILE' 'data/**/carvariations*.meta'
  1. Mettre à jour la configuration de votre serveur
    • Accédez à votre serveur.cfg file and add the following lines to ensure the vehicle pack is loaded:
plaintextCode kopieren# Vehicle Pack(s)
ensure [cars]

Exemple serveur.cfg

#  Server Information  #
########################
point_de_terminaison_tcp "0.0.0.0:30120"
point_de_terminaison_udp "0.0.0.0:30120"
sv_maxclients 64
sv_enforceGameBuild 2802
load_server_icon logo.png
sv_licenseKey "CHANGEME"
sv_hostname "CHANGEME"
set steam_webApiKey "CHANGEME"
sets sv_projectName "CHANGEME"
sets sv_projectDesc "CHANGEME"
sets locale "en-US"
sets tags "roleplay, standalone, vMenu, Modded-Vehicles, Modded-EUP"
sets Discord "https://discord.gg/<link>"
sets Website "CHANGEME"
sets banner_detail "<Image>"

########################
# Default Files #
########################
ensure mapmanager
ensure chat
ensure spawnmanager
ensure sessionmanager
ensure basic-gamemode
ensure hardcap
ensure RageUI
ensure NativeUI

########################
# Vehicle Files #
########################
ensure [cars]

########################
# System Admins #
########################
add_ace group.admin command allow
add_ace group.admin command.quit deny
add_principal identifier.fivem:<ID> group.admin

sv_maxclients 64

How to Add a Replacement Vehicle

Step-by-Step Instructions

  1. Find and Download the Vehicle Pack
    • Locate a vehicle or vehicle pack you wish to add (e.g., LSPD Legacy Pack 81).
    • Download the pack, ensuring you choose the latest REPLACEMENT version if given an option.
  2. Prepare Your Server Directory
    • Decide where to place the vehicles in your server directory. A common practice is to use a [voitures] folder within the FiveM directory.
  3. Add the Vehicle Files
    • Drag and drop the main folder containing the flux folder and fxmanifest.lua into your chosen directory.
    • If the pack uses __ressource.lua au lieu de fxmanifest.lua, you may need to create an fxmanifest.lua. Use the example below as a template:
fx_version 'céruléen'
author 'CAR PACK CREATOR'
description '<Department> Vehicle Pack, created by <Creator>!'
jeu 'gta5'

fichiers {
'data/**/*.meta',
}

data_file 'HANDLING_FILE' 'data/**handling*.meta'
data_file 'VEHICLE_METADATA_FILE' 'data/**/vehicles*.meta'
data_file 'CARCOLS_FILE' 'data/**/carcols*.meta'
data_file 'VEHICLE_VARIATION_FILE' 'data/**/carvariations*.meta'
  1. Mettre à jour la configuration de votre serveur
    • Accédez à votre serveur.cfg file and add the following lines to ensure the vehicle pack is loaded:
plaintextCode kopieren# Vehicle Pack(s)
ensure [cars]

Exemple serveur.cfg

plaintextCode kopieren########################
#  Server Information  #
########################
endpoint_add_tcp "0.0.0.0:30120"
endpoint_add_udp "0.0.0.0:30120"
sv_maxclients 64
sv_enforceGameBuild 2802
load_server_icon logo.png
sv_licenseKey "CHANGEME"
sv_hostname "CHANGEME"
set steam_webApiKey "CHANGEME"
sets sv_projectName "CHANGEME"
sets sv_projectDesc "CHANGEME"
sets locale "en-US"
sets tags "roleplay, standalone, vMenu, Modded-Vehicles, Modded-EUP"
sets Discord "https://discord.gg/<link>"
sets Website "CHANGEME"
sets banner_detail "<Image>"
########################
#    Default Files     #
########################
ensure mapmanager
ensure chat
ensure spawnmanager
ensure sessionmanager
ensure basic-gamemode
ensure hardcap
ensure RageUI
ensure NativeUI
########################
#    Vehicle Files     #
########################
ensure [cars]
########################
#    System Admins     #
########################
add_ace group.admin command allow
add_ace group.admin command.quit deny
add_principal identifier.fivem:<ID> group.admin
sv_maxclients 64

Why Use a [voitures] Folder?

Using a [voitures] folder simplifies server management. When you ensure a folder with brackets via serveur.cfg, everything within that folder is automatically started on server startup. This method is more efficient and organized, especially when adding multiple vehicles.

Additional Notes

  • Extra Files: Some vehicle packs may contain additional files. Always check the README.txt or README.md files within the downloaded zip for specific instructions.
  • Besoin d'aide? If you encounter any issues or need further assistance, feel free to seek help by replying to community posts or joining relevant forums.
auteur-avatar

À propos de Luke

Je m'appelle Luke, je suis un joueur et j'adore écrire sur FiveM, GTA et le jeu de rôle. Je dirige une communauté de jeu de rôle et j'ai environ 10 ans d'expérience dans l'administration de serveurs.

Laisser un commentaire