Giter Site home page Giter Site logo

discordvehiclewhitelist's Introduction

DiscordVehiclesRestrict (DiscordVehicleWhitelist by FAXES)

Continued Documentation

https://docs.badger.store/fivem-discord-scripts/discordvehiclesrestrict

Discontinued Documentation

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 :)

How to Install

--- (REQUIRED) MAKE SURE YOU SET UP IllusiveTea's discord_perms script which you can find here: https://forum.fivem.net/t/discord-roles-for-permissions-im-creative-i-know/233805

  1. Download DiscordVehicleWhitelist
  2. Extract the .zip and place the folder in your /resources/ of your Fivem server
  3. Make sure you add “start DiscordVehicleWhitelist” in your server.cfg
  4. Enjoy

Setup

  1. The 1s must be replaced with IDs of the roles within your discord
  2. The order of the roles need to match up with the restrictedVehicles list within the server.lua:
--- Config ---

--[[
	REPLACE THE '1's WITH YOUR DISCORD ROLES' IDs
]]
-- THESE NEED TO BE THE RESPECTIVE ROLE IDs OF YOUR DISCORD ROLES:
roleList = {
1, -- Civ
1, -- Trusted Civ
}

Credits

@Faxes for all his awesome work and for allowing me permission to release this! :)

discordvehiclewhitelist's People

Contributors

faxes avatar jaredscar avatar jordan2139 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.