Skip to content

Configuration

Every option of Cuxial Gardener in shared/config.lua and the editable data files.

All settings live in shared/config.lua. Regions, daily tasks, levels and clothes are in data/. Restart the resource after any change.

The NPC position, the truck spawn points, the delivery point and the regions that come in the files are examples. Change them to fit your map.

General ​

OptionTypeDefaultWhat it does
debugbooleanfalsePrints debug traces in the console. Can also be turned on with setr cuxial_gardener_debug 1. The fast command only works with debug on.
ui.accentstringconfigurableAccent colour of the panel, as a hex code.
ui.currency.symbolstring'$'Currency symbol shown in the panel.
ui.currency.localestring'en-US'Number format of the amounts ('en-US', 'es-ES'...).
logs.convarstring'cuxial_gardener_webhook'Name of the convar that holds the Discord webhook. With the convar empty, nothing is sent.
admin.auditDaysnumber60Days the audit rows are kept. Older rows are deleted once a day.
accountstring'bank'Account that receives job payments and daily rewards ('bank', 'cash').
jobstring | table'all'Who can do the job. 'all' for everyone, a job name, or a list such as { 'gardener' }.

NPC ​

Block npc.

OptionTypeDefaultWhat it does
coordsvector4examplePosition and heading of the job NPC.
modelstring's_m_m_gardener_01'Ped model.
distancenumber2.0Metres from which the interaction option is available.
menuDistancenumber6.0The server refuses to open the panel farther than this.
spawnDistancenumber60.0The NPC only exists on a client inside this radius.
blip.enabledbooleantrueShows the job blip on the map.
blip.sprite / color / scalenumber631 / 2 / 0.55Look of the blip.

Interaction and markers ​

Block target.

OptionTypeDefaultWhat it does
distancenumber2.0Metres of the options on bushes, flowers and branches on the ground.
trimDistancenumber5.0Metres of the "cut branch" option from the ladder. 5 is the maximum.
truckDistancenumber3.5Metres of the options on the truck and the lawn mower.
showDistancenumber25.0Distance at which the floating marker over bushes, branches and flowers is drawn. 0 hides it.
markertablesee fileFloating marker: type, scale, height, color ({ r, g, b, a }), bob, rotate.
ringtablesee fileRing drawn on the ground at each weed: type, scale, color.
iconstablesee fileFont Awesome icon of each interaction option.

Blips ​

Block blips. Each entry takes sprite, color and scale.

OptionDefaultWhat it marks
mow570 / 25 / 0.6Weeds
prune570 / 24 / 0.6Bushes
trim836 / 52 / 0.8Branches
plant570 / 43 / 0.6Flower area
truck67 / 0 / 0.8Job trucks
mower559 / 0 / 0.6An unhitched lawn mower
deliver38 / 29 / 0.8Delivery point
OptionTypeDefaultWhat it does
areaAlphanumber90Opacity of the flower area radius on the map.
routeColornumber25Colour of the GPS route.
routeMsnumber5000How often the route to the nearest pending point is recalculated.

World ​

Block world.

OptionTypeDefaultWhat it does
viewDistancenumber150.0Radius in which weeds, bushes, branches and flowers are created on each client.
handDistancenumber50.0Radius in which the tool carried by other players is shown.
fadeMsnumber800Fade of a bush when pruned and of a weed when mowed.
fallMsnumber2500Duration of the fall of a cut branch.

Crew ​

Block crew.

OptionTypeDefaultWhat it does
maxPlayersnumber4Maximum crew size.
inviteDistancenumber8.0Metres between the player who invites and the invited one.
inviteSecondsnumber60Seconds until an invitation expires.
reconnectSecondsnumber180Seconds a seat is kept for a member who disconnects during a job.
splitRewardsbooleantrueLets the crew owner share the money by percentage. false = everyone gets the same amount.

Job ​

Block run.

OptionTypeDefaultWhat it does
cooldownHoursnumber0Hours a player must wait between jobs. 0 = no cooldown.
exclusiveRegionsbooleanfalsetrue = only one crew per region at a time.
spawnFreeRadiusnumber6.0Metres that must be free of vehicles around each spawn point.
deathSweepMsnumber1000How often the server checks for dead players, who drop their tool and their ladder.

Vehicles ​

Block vehicles. A crew gets one truck with its lawn mower, or two pairs from secondFrom members.

OptionTypeDefaultWhat it does
platestring'GARD'Plate prefix, up to 4 characters. The job number, a letter and an index complete it.
fuelnumber100.0Value written to the fuel state bag of each vehicle on spawn.
keysbooleantrueGives the keys through cuxial_garages when that resource is running.
secondFromnumber2Crew size from which a second truck and lawn mower are spawned.
spawnTimeoutMsnumber5000Time the server waits for a vehicle to appear before cancelling the start.
minEnginenumber-3900.0Below this engine health a vehicle counts as destroyed.

Tools and lawn mower ​

OptionTypeDefaultWhat it does
tools.truckDistancenumber4.0Metres between the player and the truck to take or return a tool and to load branches.
tools.takeMsnumber3300Progress bar when taking a tool.
tools.returnMsnumber2200Progress bar when returning a tool.
mower.hitchDistancenumber4.0Metres between the lawn mower and its truck to hitch it.
mower.footDistancenumber3.0Metres from which a player on foot can hitch or unhitch it.
mow.radiusnumber1.5Metres between the lawn mower and a weed accepted by the server.
mow.maxHeightnumber3.0Height difference accepted between the lawn mower and the weed.
mow.minIntervalMsnumber120Minimum time between two cuts by the same player.
mow.scanMsnumber100How often the client looks for weeds while driving.
mow.clientRadiusnumber0.8Metres at which the client asks to cut a weed.
mow.sendMsnumber150Gap between two cut requests from the client.

Actions ​

Each action has a duration and the distances the server accepts.

OptionTypeDefaultWhat it does
work.marginMsnumber500Tolerance on the minimum time of each action.
work.lockSecondsnumber120Seconds an action and its target stay reserved for a player.
prune.ms / distancenumber4300 / 2.5Pruning: progress bar and metres to the bush.
trim.msnumber4300Branch cutting: progress bar after the minigame.
trim.reachnumber4.5Metres between the ladder and the branch.
trim.heightnumber2.0Height difference between the branch and the player on the ladder.
trim.riderSlacknumber5.0Tolerance in metres between the player and the ladder.
water.ms / distancenumber4000 / 2.5Watering: progress bar and metres to the flower.
branch.distance / takeMsnumber2.5 / 900Picking up a fallen branch: metres and progress bar.

Planting ​

Block plant.

OptionTypeDefaultWhat it does
msnumber15000Progress bar of planting.
reachnumber2.0Metres between the player and the chosen spot.
maxHeightnumber1.5Height difference between the player and the spot.
spacingnumber0.8Minimum metres between two flowers.
truckClearnumber5.0Metres that must be free of job trucks to enter placement mode.
placeDistancenumber1.9Metres from the player to the preview for a valid spot.
allowUnknownbooleantruetrue = any surface is valid. false = only the surfaces listed in materials.
materialstablesee fileSurface hashes accepted when allowUnknown = false.

Ladder ​

Block ladder.

OptionTypeDefaultWhat it does
placeDistancenumber3.0Metres between the player and the foot of the tree to place it.
vehicleClearnumber5.0Metres that must be free of job vehicles at the foot of the tree.
spacingnumber1.0Minimum metres between two ladders.
boardDistancenumber3.0Metres to climb it or to collect it.
msnumber2500Progress bar of placing and collecting.
viewDistancenumber75.0Radius in which ladders are shown.

Delivery ​

Block deliver. The job is paid when a crew member, at the wheel of a job truck, delivers at the delivery point of the region.

OptionTypeDefaultWhat it does
radiusnumber20.0Metres around the delivery point in which the trucks must be.
requireAllbooleantruetrue = every truck must be intact. false = a destroyed second truck does not block the delivery. The main truck is always required.
requireMowersbooleanfalsetrue = every lawn mower must be intact and either hitched or inside the radius.
collectLaddersbooleantruetrue = ladders left outside are collected automatically on delivery. false = the crew must return them first.

Rewards ​

Block reward. The base amounts come from each region in data/regions.lua.

OptionTypeDefaultWhat it does
modestring'team''team': with more than one member, each one gets the region reward × teamMultiplier. 'flat': each one gets the full reward. 'split': the reward × teamMultiplier is divided among the crew.
teamMultipliernumber0.8Multiplier applied to the reward when the crew has more than one member.
bonusMoneynumber0Extra money per bonus task done by the player (watering, loading branches).
bonusXpnumber0Extra XP per bonus task done by the player.
itemstable{}Items given on payment. Each entry: { item = 'name', count = 1, chance = 50 }, with chance from 1 to 100.

A solo player always gets the full region reward. XP is never split: every paid member gets the full XP of the region.

Clothes, profile and panel ​

OptionTypeDefaultWhat it does
outfit.modestring'none'Clothes set of data/outfits.lua put on when the job starts: 'workwear', 'classic' or 'none' to keep the player's clothes.
leaderboard.sizenumber10Rows of the ranking.
leaderboard.cacheSecondsnumber60Seconds the ranking is cached.
history.sizenumber10Jobs shown in the personal history.
profile.flushMsnumber30000How often XP and daily progress are saved. Money is paid at once.
tips.secondsnumber12Seconds a first-time tip stays on screen.
finish.secondsnumber15Seconds the end-of-job summary stays on screen. Minimum 3.

Commands and keys ​

OptionTypeDefaultWhat it does
commands.<id>.namestring | falsesee CommandsName of the command. false disables it.
commands.<id>.restrictedstring'group.admin' on list, close and fastGroup allowed to use the command.
keystablesee CommandsDefault keys. Each player can rebind them in the game settings.

Data files ​

FileWhat you edit there
data/regions.luaRegions: minimum level, reward, task amounts, spawn points, delivery point and flower area.
data/points.luaCoordinates of weeds, bushes and trees with their branches, per region.
data/daily.luaDaily tasks and how often they reset.
data/levels.luaXP needed for each level.
data/outfits.luaWork clothes per mode and sex.
data/games.luaDifficulty of the branch minigame.
data/guide.luaCards of the guide tab.
data/models.lua, data/tools.lua, data/vehicles.lua, data/ladder.luaModels, attach positions and animations. They rarely need changes.

Regions ​

Each entry of data/regions.lua:

FieldTypeWhat it does
idnumberStable number. The database stores it, so do not reuse or renumber ids.
labelstringLocale key with the name (region_* in locales/*.json).
minLevelnumberMinimum level of every crew member.
rewardtable{ money, xp } per member.
taskstableOne entry per task (mow, prune, trim, plant) with min and max. The amount is random between both, capped by the points available in data/points.lua.
trucks / mowersvector4[]Spawn points of each truck and its lawn mower, in order.
delivervector3Delivery point of the trucks.
flowerstableFlower area: { center, radius }.

Daily tasks ​

data/daily.lua has resetHours (default 24, counted from the player's last reset) and a list of tasks:

FieldWhat it does
idStable key stored in the database.
labelLocale key with the name.
kind'tasks' (own tasks done), 'runs' (jobs delivered), 'money' (money earned on delivery) or 'team' (jobs delivered in a crew of two or more).
goalAmount to reach.
xp / moneyReward on completion. The money goes to account.

Levels ​

data/levels.lua holds required, the XP needed to go from each level to the next. Players start at level 1 and the maximum level is the number of entries plus one.

Clothes ​

Each mode of data/outfits.lua has a male and a female set with components ({ component, drawable, texture }) and props ({ prop, drawable, texture }, drawable -1 removes it). snapshot lists what is saved before changing and restored when the job ends.

Drawable numbers depend on the clothing packs of each server. Check the sets in game and replace them with your own.

Common changes ​

Restrict the job to a framework job

shared/config.lua
lua
job = { 'gardener' },

Pay in cash and add a cooldown

shared/config.lua
lua
account = 'cash',

run = {
    cooldownHours = 1,
    exclusiveRegions = false,
    spawnFreeRadius = 6.0,
    deathSweepMs = 1000,
},

Split one reward among the crew and add an item

shared/config.lua
lua
reward = {
    mode = 'split',
    teamMultiplier = 1.0,
    bonusMoney = 25,
    bonusXp = 10,
    items = { { item = 'water', count = 1, chance = 50 } },
},

Put on the work clothes

shared/config.lua
lua
outfit = { mode = 'workwear' },

Move the NPC

shared/config.lua
lua
npc = {
    coords = vec4(0.0, 0.0, 0.0, 0.0), -- your position and heading
    -- keep the rest of the block
},

When you move the NPC, also move trucks, mowers and deliver in data/regions.lua so the vehicles appear next to it.

© Cuxial