Alv Repair Table
This is a new release, which essentially allows you to take a broken/weapon that is not full durability and fix it, restoring the durability back to 100%. It is a great addition for a Roleplay Server that wants gun repairing as a additional feature or as a job for a player owned business.
It is a light-weight resource, running 0.00ms, utilising a lot of functions from ox_lib. The script supports three frameworks by default (ESX, QB Core and OX Core), but due to it being an open source resource you can easily add support for your own framework if you are an experienced developer.
One thing about the script is we have the option to use a menu from ox_lib, or you can use the built-in UI just by changing a simple Config, the UI is very sleek and tested extensively to ensure there will be no problems in using it. Since the resource is open-source, you can also change the UI however you want!
The UI also has a notification system, with a Config.Notify
function that allows you to decide whether you use the built-in notification, the notification from your framework or whether you use a custom notification that you want to implement into the script.
Nearly everything about the script is configurable in the config.lua file, allowing you to change the script to be whatever you want. There are animations to make it seem more realistic and a progress bar to show how long is left of the weapon repair.
Since the original post, this script has received various updates. I intend to keep all my releases up-to-date and forever improving, if you want to support me on my journey, feel free to join my Discord below where I take suggestions, feedback and also provide text-channels to communicate with myself or other members that are already a part of the community!
Download: Github Repository
Preview: YouTube
Documentation: Alv.gg
Installing the script into your server:
Please ensure you install a release version as if it is not, you may get a version that is actively being worked on and may error.
1. Download this repository and add the script to your resources folder.
2. Make sure the resource is started in the server.cfg
, you can add ensure alv_repairtable
if it isn't.
3. Make sure you add the item in the config.lua
file to ox_inventory
, if you need help with this see below...
4. Once you have completed those steps, the script is ready to be used simply restart your server and you are good to go!
Adding the item to your server:
1. Navigate to your ox_inventory folder and open it, then open the data folder and finally open items.lua
.
2. Within the items table, add the following code: ['scrapmetal'] = { label = 'Scrap Metal', weight = 80, },
3. Save the file and restart your server, the item is now added to your server.
Experienced Developer? Try this:
If you want to have the best performance possible and you understand at least the basics of developing, you could also head to the framework.lua
on both the client side and server side, remove all of the code there and add a shared script to the fxmanifest.lua
with your frameworks import file, if it supports one. The frameworks in here by default all support imports.
Need Support?
I will offer support in my Community Discord, which can be found below as previously mentioned, if you need help with the script you can type in my general chat or makea ticket. Keep in mind that I am not available 24/7 so your response time may vary. You are welcome to ping me with your request to get a better chance of me seeing your message sooner!
If you are looking for a Developer with over 3 years of experience on FiveM, feel free to join my Discord Server or visit my Website!