Category artwork for this FiveM resource
Category artwork · Topic_Elite
Free resourceFiveM · script

[ESX] Combine Items

By Topic_Elite

ESX

Download and documentation on github.com.

About this FiveM resource

Good day, I have finished something small here. If your inventory script does not support this function, this is the perfect script! DOWNLOAD You have in this script the possibility to combine two items to one or three to one. I named the variables and functions after the needed information, as well as what they do. Animation List: https://alexguirre.github.io/animations-list/ To note is in the “client.lua” in line 19. Here you have to replace your progressbar, if you don’t have this progressbar (https://github.com/Mobius1/rprogress). Explanation of how the script works: If you look into the server.lua you will find in line 4 to 7 this code: ESX.RegisterUsableItem('paperweed', function(source) local xPlayer = ESX.GetPlayerFromId(source) combineTwoItems(source, xPlayer, 'paperweed', 'marijuana', 1, 'joint', 1, "Joint drehen", 10000, "mp_arresting", "a_uncuff") end) This makes the “paperweed” usable, when used it turns 1x “marijuana” and 1x “paperweed” into a “joint”.

scriptesxserverclient

Get it from the original creator

FreeScriptsHub helps you discover resources. Downloads, installation instructions, licensing and support belong to the original release.

Open github.com