Skip to content

Installation

Dependencies, ensure order, permissions, convars and surveying the yard.

Back to the overview. Problems on first start: Troubleshooting.

1. Requirements

ResourceNeededWhy
cc_lib 1.7.0 or newerYesThe Code Cartel's free compatibility layer. It finds your framework, money, keys, fuel, target, notify and progress scripts, and hardens every net event. 1.7.0 adds the tablet's shared top bar.
oxmysqlRecommendedSaves workers, properties, companies and the ledger. Without it nothing persists and properties come from config.lua on every start.
OneSyncYesThe server spawns the ute, trailer and mower and hands them to the player. Every modern server has it on (set onesync on).
A frameworkNoQbox, QBCore, ESX or ox_core. With none, cc_lib runs standalone: the job works, pay is logged but not paid.
A target scriptNoox_target or qb-target. With none, built-in [E] prompts take over.

2. Install

  1. Put cc_lib and cc_mowing in your resources folder. Keep the folder name cc_mowing.
  2. In server.cfg, after your framework, inventory and target:
    ensure oxmysql
    ensure cc_lib
    ensure cc_mowing
  3. Give your staff the permissions:
    add_ace group.admin cc_mowing.admin allow
    add_ace group.admin cc_mowing.survey allow
    add_ace group.admin cc_mowing.diagnostics allow
  4. The tables are created on the first start. If your database user cannot CREATE TABLE, import sql/cc_mowing.sql by hand first.
  5. Optional Discord logs. Use set, never setr, so players cannot read the URL:
    set cc_mowing_webhook          "https://discord.com/api/webhooks/..."   # fallback for all
    set cc_mowing_webhook_economy  "https://discord.com/api/webhooks/..."   # every money move
    set cc_mowing_webhook_security "https://discord.com/api/webhooks/..."   # cheat flags
    set cc_mowing_webhook_admin    "https://discord.com/api/webhooks/..."   # admin commands, editor
  6. Optional language: setr cc_mowing_locale "de" (en, de, es, fr, pt).
  7. Start the server and read the boot line:
    [cc_mowing] cc_mowing 2.4.0 | framework: qbx | database: ready | 9 contract(s), 19 propert(ies)

    If it ends in N CONFIG PROBLEM(S), the lines above it name each entry and field.

3. Survey the yard and the houses

The yard and the 19 shipped houses sit on real GTA V streets, but every map is different: an MLO, a map mod or a parked car can sit on any of them. Survey before players see the job.

  1. Stand where the foreman should be and run /mowing editor, then Edit the yard. Set the Foreman, Ute spawn and Return bay where you stand. Keep the ute spawn clear and leave room behind it for the trailer.
  2. For each house, open it in the editor (Go teleports you there). Set the park point, the front door and the green bin, and redraw the grass zones round the real lawn. Then Save.
  3. Start a Suburban Starter contract yourself. Check the mower sits on the trailer, unloads behind it, and that the grass and gnomes look right. Tune the mower's position with /mowing strap if needed.
  4. Run /mowing export and paste the result into config.lua, so a fresh database gets your surveyed houses.

Full editor guide: Commands & editor.

4. Choose the economy

Pay is set per lawn section in server/config.lua (ServerConfig.Pay.perSection). The shipped numbers pay about $150,000 an hour at level 1 for four-star work, rising to about $220,000 at level 50 with the pay skill maxed. For a hotter economy, one line swaps in the included preset:

lua
ServerConfig.Preset = 'high_pay'   -- about $175k/h at level 1, capped at $250k/h

After a few days of play, /mowing economy 48 prints what the job paid out over the last 48 hours, by kind, and the top earner. Move a contract's perSection if it runs hot or cold. Detail: Configuration.

Removing it

stop cc_mowing deletes every kit and refunds every deposit. The tables are cc_mowing_workers, cc_mowing_properties, cc_mowing_regulars, cc_mowing_ledger, cc_mowing_companies and cc_mowing_company_members.