Server Configuration (sv_config.lua)

The config/sv_config.lua file manages server-side permissions, ACE groups, progression curves, and the automated daily and weekly quest rotation pools.


🛡️ Administrative ACE Permissions

return {
  adminPermission = 'group.admin',
  • adminPermission: Defines the principal group eligible to access the in-game Scene Manager (/csctaskmanager) and Bonus Multiplier Manager (/cscbonusmanager).
  • Upon resource start, the server automatically maps this group to the internal ACE crimescenecleanerjob.admin.
  • Ensure your server.cfg includes:
    add_ace resource.bs-crimescenecleanerjob command.add_ace allow

🎯 Daily & Weekly Quest Pools (quests)

The quest system provides rotating objectives that reward bonus cash deposits and character EXP directly to players' accounts.

  quests = {
    dailyPool = {
      {
        id = 'complete_tasks_10',
        label = 'Finish 10 tasks',
        description = 'Complete any 10 cleanup tasks today to prove your efficiency.',
        reward = { exp = 130, money = 480 },
        objective = {
          type = 'tasks_completed',
          target = 10,
        },
      },
      {
        id = 'earn_money_1600',
        label = 'Earn $1,600',
        description = 'Deliver enough cleanups to cross $1,600 payout today.',
        reward = { exp = 210, money = 780 },
        objective = {
          type = 'earn_money',
          target = 1600,
        },
      },
      {
        id = 'work_hours_1_5',
        label = 'Work 1.5 hours',
        description = 'Stay on duty for a total of 1.5 hours during this shift.',
        reward = { exp = 140, money = 420 },
        objective = {
          type = 'work_hours',
          target = 1.5,
        },
      },
      {
        id = 'repeat_task_clean_blood_10',
        label = 'Clean 10 blood pools',
        description = 'Scrub away 10 blood pools to leave the scenes spotless.',
        reward = { exp = 150, money = 500 },
        objective = {
          type = 'repeat_task',
          taskId = 'clean_blood',
          target = 10,
        },
      },
      -- ...
    },
    weeklyPool = {
      -- Long-term weekly challenges...
    }
  }

Supported Objective Types:

Objective TypeDescription
tasks_completedCounts total number of any minigames completed during active shifts.
earn_moneyTracks cumulative cash payouts earned from cleanup jobs.
work_hoursMeasures active on-duty time spent clocked into the job.
repeat_taskFocuses on mastering a specific minigame (taskId parameter).

📈 Levels & Experience Scaling (levels)

Defines the character EXP threshold curve for progression, unlocking higher ranking titles and vehicle perks:

  levels = {
    [1] = { exp = 0, title = "Rookie Cleaner" },
    [2] = { exp = 500, title = "Biohazard Junior" },
    [3] = { exp = 1200, title = "Sanitation Specialist" },
    [4] = { exp = 2200, title = "Forensic Technician" },
    [5] = { exp = 3500, title = "Master Cleaner" },
  }

You can customize the required EXP amounts, add additional ranks, or adjust payouts to balance your server's economic ecosystem.