How to: Assigning Jobs to Players Guide

How to: Assigning Jobs to Players Guide

To assign jobs to players using the admin menu:

  • Command: Use the /setjob command.
  • Usage/setjob
  • Arguments:
    • stateId: The player's state identifier (see below for how to find it).
    • job: The job name (e.g., policeemsunemployed).
    • rank: The rank ID (1-6, see available jobs below).

Finding a User's Citizen ID (stateId)

To find a player's stateId:

  1. Open HeidiSQL: Connect to the htnfw database.
  2. Navigate to Characters Table: Go to the characters table.
  3. Search for Player: Search for the player by their character name.
  4. Copy stateId: Locate the id column for the player and copy the value, which is their stateId.

Finding Available Jobs in HTNFW

To view the list of available jobs and their ranks:

  1. Navigate to Job Manager: Go to the following directory:
    \resources\[ht-core]\htn-framework\server\jobs\job_manager
  2. Open sv_job_list.lua: Open the file sv_job_list.lua in a text editor.
  3. Review Jobs and Ranks: This file lists all available jobs and their corresponding rank IDs (1–6). Use the rank ID (not the display name) when assigning jobs with the /setjob command.

Read more