Skip to content

JaredScar/DiscordWeaponPerms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DiscordWeaponPerms

Continued Documentation

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

Discontinued Documentation

Version 1.0

Another discord script of course! With this script, you can restrict weapons to certain roles on your discord server! This script also allows restricting certain attachments to different groups as well (however, it'll remove the weapon if they have the attachment, I'll eventually update it to just remove the attachment from the weapon).

https://i.gyazo.com/52a7106f1db9c309c28ff012b8127ae2.gif

You must set up IllusiveTea's discord_perms script for this to work properly. --> https://forum.fivem.net/t/discord-roles-for-permissions-im-creative-i-know/233805

How it works

roleList = {
1, -- Trusted Civ (1)
1, -- Donator (2)
1, -- Personal (3)
}

responds to it's respective number within the other list:

restrictedWeapons = {
{}, -- Trusted Civ (1)
{}, -- Donator (2)
{
"WEAPON_RPG",
}, -- Personal (3)
}

The RPG weapon would then be restricted to only people with personal discord role within your discord server.

It's quite simple :slight_smile:

Installation

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

Download DiscordWeaponPerms

My Other Work

DiscordChatRoles

DiscordAcePerms

SandyVehiclesRestrict

DiscordTagIDs

DiscordVehiclesRestrict

DiscordPedPerms

BadgerAnims

DiscordWeaponPerms

Version 2.0

  • Removing restricted weapon attachments from weapon instead of whole weapon?

About

A fivem script

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages