Car & Weapon Blacklist Script for FiveM

A reliable and easy-to-configure FiveM blacklist script that prevents players from using or spawning unauthorized vehicles and weapons on your server.

  • Removes blacklisted weapons automatically

  • Blocks entry into blacklisted vehicles

  • Sends in-game chat notifications to players when blacklisted items are removed or blocked

  • Logs blacklist events to a Discord webhook

  • Lightweight, efficient, and configurable


Installation

  1. Place the resource folder (e.g., car_gun_blacklist_vld) into your server's resources directory.

  2. Add the following line to your server.cfg to start the resource:

    ensure car_gun_blacklist_vld
  3. Configure your blacklists and webhook URL in config.lua.


Configuration (config.lua)

Config = {}

-- Your Discord webhook URL to receive blacklist logs
Config.WebhookURL = "https://discord.com/api/webhooks/your-webhook-id/your-webhook-token"

-- List blacklisted weapons here (use GTA weapon names in uppercase)
Config.BlacklistedWeapons = {
    "WEAPON_RPG",
    "WEAPON_STICKYBOMB",
    -- Add more weapons
}

-- List blacklisted vehicles here (use vehicle model names in lowercase)
Config.BlacklistedVehicles = {
    "insurgent",
    "rhino",
    -- Add more vehicles
}

Usage

  • The script automatically checks and removes blacklisted weapons from players regularly.

  • Players attempting to enter blacklisted vehicles are kicked out and notified.

  • All blacklist events are logged to Discord with player info and Discord ID.

  • Players receive chat messages when a blacklist action affects them.


Important Notes

  • Vehicle spawn blocking is handled client-side due to FiveM limitations.

  • Ensure players have Discord connected to their FiveM account to log Discord IDs properly.

  • Customize the webhook and blacklist items in config.lua as needed.


File Structure


fxmanifest.lua Example


Support

If you find any issues or want to request features, please contact us on the discord

Last updated

Was this helpful?