Badger Docs
Search…
DiscordVehiclesRestrict

DiscordVehiclesRestrict

This is a Discord Vehicle Restriction script that restricts vehicles to certain roles with discord. This idea came about because of FAXES DiscordVehicleWhitelist. I have gotten permission from FAXES to add onto his script and make it possible to restrict vehicle use to only certain roles within Discord.
The permissions update every respawn for a player :)

Badger's Discord Community

Download

How to Install

Requirement
GitHub - JaredScar/Badger_Discord_API: A FiveM API Script [created by Badger]
GitHub

Setup

  1. 1.
    The 1s must be replaced with IDs of the roles within your discord
  2. 2.
    The order of the roles need to match up with the restrictedVehicles list within the client.lua:
  3. 3.
    1
    --- Config ---
    2
    3
    --[[
    4
    REPLACE THE '1's WITH YOUR DISCORD ROLES' IDs
    5
    ]]
    6
    -- THESE NEED TO BE THE RESPECTIVE ROLE IDs OF YOUR DISCORD ROLES:
    7
    roleList = {
    8
    1, -- Civ
    9
    1, -- Trusted Civ
    10
    }
    Copied!
Last modified 1yr ago