How to Add Scripts to your FiveM Server

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
[Music] hey everyone what's going on this is laan from laan scripts and uh we're just going to dive right into this so you're here to learn how to add scripts to your 5m server this is a really simple process and will work for all the major Frameworks whether that's ESX QB core doesn't matter in this video I'm going to be doing this on a QB core server and I'm going to be installing our most popular script Advanced weed growing uh the link is in the description if you want to learn more about this script later on uh so let's get into it so I've already downloaded my script from Key Master yours may be from keymaster as well or a site like GitHub either way doesn't matter the download you got it's most likely going to be a zip file and so at this point you're going to need uh an extraction tool like WinRAR or similar uh if you don't have winar the downloads in the description for you as well um so now we just need to open this zip file and we can simply drag and drop this onto our desktop to extract it or we can do it directly into our server files in this example I'm just going to be doing it directly into my server files so uh you know just go to your main resources folder if you don't know where that's at just follow along here uh should be a folder resources and I'm going to do this into the Standalone folder so um to extract it simply just click and drag and boom done so now that that Point's done we can get rid of this ZIP file we don't really need need this any longer and now we can dive right into our script here and start checking it out see what we got to install now just real quick whenever you're adding a new script to your server be sure before you restart your server with the new script installed that you've at least visited the config file and made any necessary changes to fit your specific setup uh in this example you're going to see I'm using a program called vs code you'll see that as I open up the config here uh if you're using something else like notepad or even notepad notepad++ I highly recommend you just trash them immediately and download this instead uh the link for that is also in the description all right so getting back to our script files here and beginning the install like uh so we see our config file here which is important we're going to come to that later uh but we also see this install folder this tells us there stuff we need to do here so upon opening that up we see a couple things images and an items folder install instructions which is great uh and then an SQL file so we're going to go through these one by one uh first we're going to start with the SQL file all right so at this point I'm assuming you already have a 5m server set up which means you got a database running and you know how to access it that's my assumption if I'm wrong let me know I'll try to help you out in the comments uh but otherwise let's install this SQL file so I'm going to show you how I do this there's a few different ways to go about it but this way is the one I believe is the most simple so what I usually do is I'll just open the SQL file in vs code copy the content of It Go go over to my database now if you're using the typical database yours will probably look like this and we'll go over to the SQL tab here we'll paste what we copied from the file hit go and boom done if you see something like this great it worked our SQL file is now done and we can move on to the next step now this next part will look different for everyone and largely depends on what inventory system you're using in this example I'm using quazar inventory which means I'll just be adding the items as I normally would if if I was using the default QB inventory system so if you're using either one of these then just follow these steps otherwise you'll need to refer to your specific inventories documentation so going back into our install folder let's open up the items folder first and in here we find various files for various inventory systems which is helpful as mentioned I'm using quazar inventory so I'll be opening the Qs inventory file and once opened I'm just going to select all and copy all this data and then I'm going to to navigate back a couple folders and I'm going to open QB QB core shared and items. Loa now I'm already scrolled to the bottom if uh your if yours looks something like this just get to the bottom of your list uh at the bottom but before the last closing bracket so I'm just going to hit enter create some empty space here and I'm going to paste what I copied now that's that's all we got to do for the items part now we need to add the images so I'm going to save this going to go back to our script we're installing which was uh our weed script install and this time I'm going to grab the images same thing I'm just going to select them all copy them and now we're going back since I'm using uh quazar inventory as mentioned I'm going to go to the Qs inventory HTML images and I'm just going to paste these images now it tells me I'm going to replace some that's fine I just want to use these new images that I got boom done after that we've installed our items we've installed our SQL now we can visit the config and make sure we got everything set up there before we start for the first time so we're going to navigate back to the main directory of the script we're installing which was in this case the weed growing and we just want to visit the config make sure there's nothing in here we need to change before starting it uh just just going to do a quick glance uh debug Target uh if none then Tex UI is used that's great I prefer the text UI I'm not going to set any Target scripts uh progress Max plant count render distance this all looks fine what we're looking for really is just like if it asks for your framework or other things that would be specific to our server uh doesn't look like there's anything else we're going to need so I think we're ready to go ahead and try this script out so what I'm going to do is head over here and we're going to restart our server and we'll get in there and see if this works so while we're loading in just remember if this has been helpful to you at all be sure to like the video comment let me know if you want more of these we can do plenty more tutorials uh just let me know what you guys want and uh we'll get those videos done for you uh so we're just going to load in here test out the new script and see how it all went all right so here we are we're loaded in it's time to test the script and make sure our install went according to plan so I went ahead I already know the requirements of the script and spawn the items I knew I would need such as some seeds plant pot shovel the water fertilizer all that good stuff uh so far so good if the items are working that's a great sign so we're going to go ahead and get started make sure we can actually plant some uh plant some weed so I'm going to start with the first one the regular weed uh and looks like our controls are good and uh you can see is doesn't let me plant here turns red but if we move it out into the grass it lets us theoretically plant here so let's see all that all right that's a success and we'll try a second one for good measure this is the Purple Haze and we'll go ahead and just place that right there so now so far so good we'll walk up to our plants and make sure we can actually interact with them so we see all our options here thirst hunger growth all that good stuff we'll go ahead and test uh an action so watering seems like it's good so far and our water level or our thirst level rather has updated growth has started to update this is great we'll check our second plant our Purple Haze and we can see this one has started growing as well we'll go ahead and fertilize this and so far so good great all right so as long as everything's working then that's your install great job uh and again in this example I installed the advanced weed growing by lation scripts myself uh this is our most popular script uh for many reasons it includes you know custom props such as these colorful plan options and you know uh you can learn more about it here on the website I'll include the link in the description it's a great Improvement to any server uh any questions just ask and uh that about wraps it up uh if you want to see more videos like this let me know below uh we'll crank them out for you and thanks again for watching
Info
Channel: Lation Scripts
Views: 403
Rating: undefined out of 5
Keywords: fivem scripts, add scripts to fivem, fivem server setup, how to install fivem scripts, fivem scripting tutorial, custom scripts fivem, fivem server tips, fivem mod installation, how to add scripts fivem, fivem tutorial, add mods to fivem, install resources on fivem server, how to add scripts on qbcore, how to install scripts on qbcore, how to add scripts to esx
Id: ZF7roVXea34
Channel Id: undefined
Length: 8min 29sec (509 seconds)
Published: Tue Feb 20 2024
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.