DiscordAcePerms + BadgerDiscordAPI - FiveM Resource Install/Overview

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hello everyone and welcome back to today's video today we are doing one of the most requested videos is setting up kind of the badger discord cited scripts um i'm going to be focusing on the main api script setting that up in the first part of this video then we're going to go ahead and check out some of the other scripts later on in the video i will be including timestamps for this video so feel free to use the chapter feature on youtube to skip apart um and go to wherever you need to in this video um i'm gonna assume that you have a server set up already if you don't go check out our video on setting up a 5m server but otherwise let's go ahead and get straight into this there's a few things we're going to need we're obviously going to need the overall api i'm also going to be installing the discord ace perms later on um and you're also going to need to go to the developer portal for um discord and we're going to create a new application and set it to our discord server all right so in order to download the script uh you can go ahead and click the tedx link um it is free so you can download it for free and just enter 000 on this paper on this page and then um it will redirect you over to the github once you go through that whole checkout process um so once you're over on the github all you got to do is press the big green download button press download zip file and then open it up with winrar winzip 7-zip whatever you used to use these and um what we're going to do first is we're just going to drag this into our resources folder we're going to have to start configuring this to what we need um so just go ahead and rename this right off the bat and just get rid of that dash main at the end we don't want that there we just want it to be badger underscore discord underscore api and then when you're in here the thing we're actually going to be taking a look at is the config.lula because there's a few things you're going to need you're going to need your guild id you're going to need a bot token and then you're going to set up your roll list and then you can obviously set up your um like splash pictures and then your server names and websites and all that good stuff as well um so let's talk about how to get a guild id so over here in discord just make sure you're in developer mode if you don't know how to get into developer mode you're just going to go to your profile here and then you're going to go down to um advanced and then you're just going to make sure developer mode is turned on um so when you're in developer mode you're just going to go over to the right hand side wherever your 5m server list or whatever guild you're using is and then right click and then press copy id here and this is the id you're going to go ahead and paste into the config and there we go so now we're actually going to have to get our bot token and we're going to have to set up our roll list so in order to get our bot token if we go back over to the discord developer portal what we're gonna do is we're gonna create a new application and i'm just gonna name this 5m video test or something that's what i'm just going to do so i'm just going to do that easily and name this whatever you want and um obviously i'm going to delete this after so none of this will work so don't try to use the same details um then you're going to go down to bot here and then you're actually going to add a bot user to this press yes and then i'm just going to keep the name the same and then i'm going to turn it off as a public bot because i only want it to join my server i don't want anything else but i am going to just go ahead and copy the token for the bot and go ahead and paste it in here just like that and then we got to set up our roll list but before we do that we're actually going to invite our bot to our discord server you're going to go to oauth2 and then once you are here you're just going to go ahead and select the bot here so we're going to just find where bot is just right there and then we're going to do pop permissions as administrator and we're going to copy this url and if i paste this url in it's going to be like hey where do you want to select it i'm going to send it to my 5m server discord i'm going to authorize it i'm gonna do this weird capture thing that never works because it's a capture and it's really really annoying that's a train right oh well i failed that see this is what i mean i don't like happiness um i'm just gonna go ahead and do this and when i get through this there we go it's going to actually have that bot on our discord so here we go 5m video test it's going to have its administrator role as well so now i can access those role lists and everything else so we are done in terms of the discord side we don't need this anymore all right so now let's go ahead and go over how to add the roles and all that stuff so first off we actually have to go create a role inside of our discord server so i'm just going to create a new role i'm going to call it owner or something along the lines of that make it yellow or whatever else i want to do permissions i'm just going to give it an administrator permission um there we go just going to make that administrator save that and i'm going to give myself the role so we can just go ahead and keep this easy now same thing we did previously when you're in the role menu you could be right clicking and this makes it the easiest as long as you're in developer role you can go ahead and copy the id and that's what we're going to do we're just going to copy the id of this role and to just make an example i'm just going to make a test roll for a secondary role so we can pull that id in a moment all right so inside of our roll list if you've never used kind of this type of format before let's go over how you use it so you're just going to put a few spaces in here and then underneath um you're going to go right underneath the space after the l here to start off um and you're going to do bracket and then um i'm going to type whatever you want this role to be called in game i'm just going to name it the same thing make sure not to add spaces here because it may break and then equals and then that role id that we just copied you're going to do the same thing for every single one of your roles that you want to add so we made this test two just like that and then that equals whatever that test two role id is let's go ahead and pull that from our server we're gonna take our test two role id and we're gonna go ahead and paste that in and add a comma at the end those are our two roles so we have those synced now go ahead and have that i'm gonna disable this black screen i don't think it's needed online but you can obviously configure this to your liking anytime you need to configure it um so just make sure you go ahead and link all that up all right so now the final thing we have to do with this is obviously do also provide an example.lula so how you can pull those roll ids in your other scripts if you have custom scripts or anything if you're a developer look this over if you're not you probably won't need it if you're installing existing resources so go ahead and copy the name of the folder just so we can add it to our server.cfg file edit with notepad plus plus and add insure that just at the top you're going to want to enable any of your other resources below the discord api the discord api obviously is the thing that handles everything with the other resources so you need this first so make sure to keep that right there that is it for that now we actually have to go install something that's used by this api right and that thing that we are going to install next is discord ace perms um i do recommend reading over the documentation this one's a little bit more advanced um so once you go through the checkout process over on tebx with this link um it's going to take you to the github same thing we previously did we're gonna press the code button and we're gonna download it as a zip we're gonna unzip this and we're just gonna go ahead and move this folder just like we did before into our resources folder making sure to delete that dash master dash main whatever pops up for you at the end of it so it's just called discord ace perms it's that easy now i do recommend reading over this part because i'm going to go over it in the video but you should always be reading the documentation so make sure to read stuff over all right so now we are here we're going to open up our config.lula file you can configure server name so i'm going to configure my server name as the bghd development server my discord url i'm going to set to our discord url so https development dot-com flash discord and our website obviously i'm just going to make it phd dev or i can actually do bqhd.dev i think we own that domain as well there we go so here's where we're going to configure this once again your role ids here are going to be the same things we just pulled from discord again but this is where it changes this is what you're going to put in your server.cfq file when assigning or any other permissions type file if you're using the menu you'll have a permissions.cfg as well you're going to use these group names here for those files um so let's go ahead and i'm gonna delete all but two of them well i'm gonna leave member and i'm gonna just do this so what we'll do is we'll make this our group and i'm just gonna name it test2 and our group owner so it just fits up with our discord roles here i'm going to take the test2 role and i'm going to replace its role list with that and then i'm going to take its owner role once again copying the id and replacing the group owner role with it and going ahead and save this file so so far we have group.chest2 and group.owner so anyone with this discord url which we have in our um discord server will have the group owner permissions anyone with this will have the group test2 permissions wherever you may set those up um when you are doing this all right now that we have done this we're going to go back we're going to go ahead and copy the name of the folder discord asperms and we're going to go to our server.cfc and we're going to start actually configuring some of this so underneath our insurer here we're just going to add ensure discord 8 sperm right below the discord api so just make sure you do that right after or it doesn't have to be right after just make sure you do that and there's two things we're going to have to add to this and i like just adding them at the top so i always know where they are and what it's doing we are going to have to do add underscore ace resource dot discord ace perms command dot add principle allow and we're also going to have to add the remove principle which is the same exact thing but room dot remove principle rather than dot add principle both these are on the documentation so you can just copy and paste them from the documentation all the links are down in the description below what is this you're asking well this is allowing the permissions to work so make sure you don't rename your folder from discord ace perms or it's not going to work there's a reason we remove that dash master and this is the reason up here this is where the permissions come from so down here you can see the ad system admins add ace group.admin command a lab see how they have the default thing there and we have our easy admin group and everything well this is where we actually go ahead and configure this so with my i set myself earlier in the um series in the 5m installs to a steam admin so i have my identifier for steam group admin so by default i'm already setting myself to group owner when i joined the server with discord so i don't need to do this this no need to do terrific so this is pretty much eliminating your need for steam permissions or any of that you're now using discord this is where you're going to configure any of your other systems so whatever you resources you're using that requires permissions and however they have them set up mostly using ace perms most likely what you're going to have to do is you're going to have to enter the name of the group here so this is group.admin but i'm just gonna add group.owner so now only the owner group from discord is gonna be able to use easy admin no one else is gonna be able to use it so if even if i'm a steamy admin and i'm in a group dot admin i'm not going to be able to use it i need to be group dot owner and by default from what we set up in the files we know that is good to go horrific all right that's pretty much all we have to do overall so i'm just going to go ahead and close this resource out now if we go ahead and start up our 5m server we're just going to make sure everything has started up successfully so um it has found my permissions to my 5m um discord here so whoops there it goes um so you can see as long as it says your correct 5m um discord and it says they both started up you're pretty much good to go you've done everything you need to do um to prove that this is working i'm going to go ahead and real quick install easy easy admin just to keep it easy funny um so let me do that real quick and let's go ahead and hop in game after that [Music] a matter all right so we're just gonna go ahead and connect to our um server here and if all this works and i press f2 when we get in i should open up the easy admin menu and have the admin permissions for it so that's how we're gonna know this works is by opening that easy admin menu and making sure it all works so i have joined the server here if i go ahead and press f2 um other than lambda menu also opening i don't know how i could close there we go um so there we go easy admins open i have my server management i can clean up the area i have um all that good stuff as well which is pretty pretty cool so i can kick and ban which means i have those admin permissions and we have set everything up correctly which is terrific um so yeah that's pretty easy pretty cool um thanks so much for everybody who actually sent me documentation on this thanks so much for watching and hopefully this should help you and if you have suggestions for resources leave them down in the comments [Music]
Info
Channel: BGHDDevelopment
Views: 37,326
Rating: undefined out of 5
Keywords: BGHDDevelopment, BGHD, BGHDDev, Tutorial, discordaceperms fivem, DiscordAcePerms, BadgerDiscordAPI, badger discord api, discord ace perms, fivem permissions.cfg, vmenu fivem permissions, fivem ace permissions, fivem easyadmin permissions, fivem vmenu permissions not working, fivem admin permissions, fivem server permissions, fivem discord server, fivem discord bot, fivem discord rich presence, fivem discord logs, fivem discord perms, fivem discord chat roles, Discord, FiveM, Easy, Admin
Id: blOnyLfevw8
Channel Id: undefined
Length: 13min 42sec (822 seconds)
Published: Fri Nov 12 2021
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.