Exports & API

External functions for integrating with other scripts.

Overview

hsJobQuest V2 provides exports for:

  • Reading player data

  • Checking skills

  • Querying mission status

  • Economy information

  • Faction reputation


Server Exports

GetPlayerData

Get a player's complete data.

local playerData = exports['hsJobQuestV2']:GetPlayerData(citizenId)

Parameters:

Name
Type
Description

citizenId

string

Player identifier

Returns: table or nil

Example return:

Example:


GetPlayerRank

Get a player's current rank.

Parameters:

Name
Type
Description

citizenId

string

Player identifier

Returns: number (1-10) or nil

Example:


GetPlayerPrestige

Get a player's prestige level.

Parameters:

Name
Type
Description

citizenId

string

Player identifier

Returns: number (0-5) or nil

Example:


GetSkillLevel

Get a specific skill level.

Parameters:

Name
Type
Description

citizenId

string

Player identifier

category

string

Skill category

skillName

string

Skill name

Skill Categories & Skills:

  • driving: speed_boost, fuel_efficiency, handling, brake_power

  • efficiency: quick_load, gps_enhancement, bonus_finder, stamina, long_haul

  • combat: vehicle_armor, evade_police, threat_awareness, package_insurance

  • special: double_xp, money_multiplier, lucky_drops

Returns: number (0 to max level)

Example:


GetSkillValue

Get the actual value of a skill (not level).

Parameters:

Name
Type
Description

citizenId

string

Player identifier

category

string

Skill category

skillName

string

Skill name

Returns: number - The skill's effect value

Example:


HasActiveMission

Check if player has an active mission.

Parameters:

Name
Type
Description

citizenId

string

Player identifier

Returns: boolean

Example:


GetActiveMission

Get active mission details.

Parameters:

Name
Type
Description

citizenId

string

Player identifier

Returns: table or nil

Example return:

Example:


GetFactionReputation

Get player's reputation with a faction.

Parameters:

Name
Type
Description

citizenId

string

Player identifier

factionId

string

Faction identifier

Faction IDs:

  • courier_corp - General courier work

  • medical_express - Medical deliveries

  • luxury_logistics - High-end deliveries

  • street_runners - Underground deliveries

  • industrial_freight - Heavy cargo

Returns: number (reputation points)

Reputation Levels:

Points
Level

0-500

Unknown

500-1000

Known

1000-2500

Trusted

2500-5000

Respected

5000+

Elite Partner

Example:


GetATMBalance

Get player's ATM balance.

Parameters:

Name
Type
Description

citizenId

string

Player identifier

Returns: number - Balance amount

Example:


AddATMBalance

Add money to player's ATM balance.

Parameters:

Name
Type
Description

citizenId

string

Player identifier

amount

number

Amount to add

reason

string

Transaction reason

Returns: boolean - Success status

Example:


RemoveATMBalance

Remove money from player's ATM balance.

Parameters:

Name
Type
Description

citizenId

string

Player identifier

amount

number

Amount to remove

reason

string

Transaction reason

Returns: boolean - Success status

Example:


GetEconomyMultiplier

Get current economy multiplier for a job.

Parameters:

Name
Type
Description

jobType

string

Job type identifier

Job Types:

  • food_delivery

  • package_delivery

  • medical_delivery

  • luxury_delivery

  • cargo_delivery

Returns: number (0.8 to 1.5) - Demand multiplier

Example:


Client Exports

IsOnMission

Check if local player is on a mission.

Returns: boolean

Example:


GetCurrentObjective

Get current mission objective.

Returns: string or nil

Possible Values:

  • spawn_vehicle - Player needs to spawn their delivery vehicle

  • load_packages - Player needs to load packages into vehicle

  • go_to_delivery - Player is traveling to delivery location

  • retrieve_package - Player needs to retrieve package from vehicle

  • deliver_package - Player needs to deliver package to recipient

  • return_vehicle - Player needs to return vehicle to complete mission

Example:


GetMissionProgress

Get delivery progress.

Returns:

  • number|nil - Current delivery index

  • number|nil - Total deliveries

Example:


GetDistanceTraveled

Get distance traveled in current mission.

Returns: number - Kilometers traveled

Example:


GetMissionVehicle

Get current mission vehicle entity.

Returns: number|nil - Vehicle entity handle or nil

Example:


GetMissionJobType

Get current mission's job type.

Returns: string|nil - Job type identifier

Example:


GetMissionType

Get current mission type.

Returns: string|nil - Mission type

Mission Types:

  • standard - Regular delivery

  • express - Time-sensitive delivery

  • bonus_hunt - Bonus objective hunting

  • long_haul - Long distance delivery

Example:


Integration Examples

Example 1: Restrict Other Jobs During Mission


Example 2: Skill-Based Fuel Reduction


Example 3: Rank-Based Rewards


Example 4: Check Faction Standing


Example 5: Custom HUD Integration


Example 6: Anti-Cheat Integration


Example 7: Dynamic Economy Integration


Notes

  • All citizenId parameters should use the framework's identifier system (e.g., QBCore's citizenid, ESX's identifier)

  • Client exports only work on the local client and cannot be called from server

  • Server exports can be called from any server-side script

  • Always check return values for nil before using them

  • Skill values are percentages (e.g., 30 = 30% reduction/bonus)

  • Economy multipliers update dynamically based on player activity


Support

1

Check resource status

  1. Check that the resource is running:

    • /status

    • /ensure hsJobQuestV2

2

Verify export usage

  1. Verify you're using the correct export syntax for your side (client/server).

3

Inspect logs

  1. Check server/client console for errors.

4

Framework bridge

  1. Ensure your framework bridge is configured correctly.


Version: 2.1.0 Last Updated: 2025