How to: Assigning Jobs to Players Guide
To assign jobs to players using the admin menu:
- Command: Use the
/setjobcommand. - Usage:
/setjob - Arguments:
stateId: The player's state identifier (see below for how to find it).job: The job name (e.g.,police,ems,unemployed).rank: The rank ID (1-6, see available jobs below).
Finding a User's Citizen ID (stateId)
To find a player's stateId:
- Open HeidiSQL: Connect to the
htnfwdatabase. - Navigate to Characters Table: Go to the
characterstable. - Search for Player: Search for the player by their character name.
- Copy stateId: Locate the
idcolumn for the player and copy the value, which is theirstateId.
Finding Available Jobs in HTNFW
To view the list of available jobs and their ranks:
- Navigate to Job Manager: Go to the following directory:
\resources\[ht-core]\htn-framework\server\jobs\job_manager - Open sv_job_list.lua: Open the file
sv_job_list.luain a text editor. - 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
/setjobcommand.