CONFIGURATION

Here you can find the configuration guide of ol-butcher

The configuration files are: Config.lua, config_s.lua and html/config.js

CONFIG_S.LUA

In this file you can adapt your inventory to the functions and customize the changemultiplier command (you must have a little knowledge of coding)

You should edit this:

function SearchItem(player, item)
	local xPlayer = ESX.GetPlayerFromId(player)
    	local count = xPlayer.getInventoryItem(item).count
    
	return count
end

And this:

ESX.RegisterCommand('changemultiplier', 'admin', function(xPlayer, args, showError)
	TriggerClientEvent('ol-butcher:sendDailyMultiplier', -1)
end, true, {help = "Refresh sale multiplier from butcher sell market", validate = true, arguments = {}})

CONFIG.JS

Here you can edit html locales

Locales = {
    ["welcome_message"]: "Welcome to BurgerShot, what do you have?",
    ["daily_message"]: "Today we need:",
    ["sell"]: "SELL",
    ["multiplier_text"]: "Multiplier"
}

Items = {
    ['chicken']: "Chickens",
    ['pig']: "Pigs"
}

CONFIG.LUA

Here you can edit the locales, markers, 3d texts

circle-info

Pig config and Chicken config are the same

Here you can set the database job name, if you set "none" the job will be avaible for every player

Here you can set sale multiplier refresh timers, it will be executed every day

h = hour m = minute

This is the intial configuration for pigs, you can set:

  • Max number of pigs that player can take while working

  • Money for each pig sold

  • Time for slaught and package animation

  • Fail parcent while catching pigs

This is the config for all the positions

You can create many slaughter or package stations, copy the pattern and edit coords

Here you can decide where and how many pigs spawn in ranch BE CAREFULL, set the pig's position right because the player will be teleported out only if he catches all the pigs

Sales area configuration, this is the same for pig and chicken

You can create more stations if you copy the pattern below and paste it in Positions = {}

You can also chose if use a custom ped or marker

Blips customization

Here you can set blips as you want, you can create more than one if you copy the pattern

Last updated