INSTALLATION


1º Go to (lambra-lumberjack/config.lua) and change the following to:

Config.Framework = "ESX" -- QB or ESX ready by default
Config.Target = "ox_target" -- qb-target or ox_target ready by default
Config.menuName = "ox_lib" -- qb-menu or ox_lib ready by default
Config.inventoryDirectory = "nui://ox_inventory/web/images/" --Change this to your items image folder of your inventory


2º Go to (lambra-lumberjack/fxmanifest.lua) and uncomment line 9 to enable ox_lib in the resource


3º Go to (ox_inventory/data/weapons.lua) and add the following to the weapons table:

['WEAPON_CHAINSAW'] = {
	label = 'Chainsaw',
	model = "WEAPON_CHAINSAW",
	weight = 1500,
	durability = 0.075,
	ammoname = 'ammo_minigun',
},

['WEAPON_CHAINSAW2'] = {
	label = 'Chainsaw 2',
	model = "WEAPON_CHAINSAW",
	weight = 1500,
	durability = 0.075,
	ammoname = 'ammo_minigun',
},


4º Go to (ox_inventory/data/items.lua) and add the following to the table:

["chainsawfuel"] = {
	label = "Chainsaw Fuel 20L",
	weight = 1,
	stack = true,
	close = true,
	allowArmed = true
},


5º Go to (ox_inventory/web/images) and drag all the item images from (lambra-lumberjack/INSTALLATION/images)

6º Go to (ox_inventory/modules/inventory/server.lua), inside updateWeapon function search for: 

	elseif action == 'ammo' then

Following the elseif structure add this one below:

	elseif action == 'chainsaw' then
		if item.model ~= "WEAPON_CHAINSAW" then return end
		local durability = Items(weapon.name).durability * math.abs((weapon.metadata.ammo or 0.1) - value)
		weapon.metadata.ammo = value
		weapon.metadata.durability = weapon.metadata.durability - durability
		weapon.weight = Inventory.SlotWeight(item, weapon)


7º Upon the first start of the resource the resource will create a table to your Database named "lambra_levels", just double check in your Database, if it was indeed created.




8º Go to (es_extended/server/main.lua) line 308 and delete the showNotification for commanderror_invalidcommand (This will prevent interaction keymappings from throwing "Invalid command" which is a false positive of an invalid command)