Skip to content
On this page

Athena.systems.job.instance

Functions

clear

Usage

Athena.systems.job.instance.clear(player): any

Clear the job instance.

Parameters

NameType
playerany

Returns

any

Defined in

server/systems/job/instance.ts:52


get

Usage

Athena.systems.job.instance.get(player): Job | undefined

Get the current job instance for a player, or player id.

Parameters

NameType
playerany

Returns

Job | undefined

Defined in

server/systems/job/instance.ts:13


override

Usage

Athena.systems.job.instance.override(functionName, callback): any

Used to override job instancing functionality

Parameters

NameType
functionName"get"
callback(player: any) => Job | undefined

Returns

any

Defined in

server/systems/job/instance.ts:84

Usage

Athena.systems.job.instance.override(functionName, callback): any

Used to override job instancing functionality

Parameters

NameType
functionName"set"
callback(player: Player, newJob: Job) => any

Returns

any

Defined in

server/systems/job/instance.ts:85

Usage

Athena.systems.job.instance.override(functionName, callback): any

Used to override job instancing functionality

Parameters

NameType
functionName"clear"
callback(player: any) => any

Returns

any

Defined in

server/systems/job/instance.ts:86


set

Usage

Athena.systems.job.instance.set(player, newJob): any

Set the current job instance for a player.

Parameters

NameTypeDescription
playerPlayerAn alt:V Player Entity
newJobJob

Returns

any

Defined in

server/systems/job/instance.ts:32

Created by Stuyk | Est. 2020