NeedJob
Allows you to limit a job to only be joinable if the player is currently some other job first.
Alias
Source
Requires
Type
Example
TEAM_CHIEF = DarkRP.createJob( 'Civil Protection Chief',
{
color = Color( 5, 255, 0, 255 ),
model = 'models/player/combine_soldier_prisonguard.mdl',
description = [[The Chief is the leader of the Civil Protection]],
weapons = { 'arrest_stick', 'unarrest_stick', 'weapon_deagle2', 'stunstick', 'door_ram', 'weaponchecker' },
command = 'chief',
chief = true,
NeedJob = { TEAM_POLICE },
category = 'Civil Protection',
} )TEAM_CHIEF = DarkRP.createJob( 'Civil Protection Chief',
{
color = Color( 5, 255, 0, 255 ),
model = 'models/player/combine_soldier_prisonguard.mdl',
description = [[The Chief is the leader of the Civil Protection]],
weapons = { 'arrest_stick', 'unarrest_stick', 'weapon_deagle2', 'stunstick', 'door_ram', 'weaponchecker' },
command = 'chief',
chief = true,
NeedJob = { TEAM_POLICE, TEAM_CIVIL },
category = 'Civil Protection',
} )Output

Notes
Last updated