tip

Specifies a tooltip-like popup box which will display when a player hovers their mouse over the job in the list.

Alias

tip

Source

added in Arivia v3

Requires

no additional requirements

Type

string

Example

TEAM_CHIEF = DarkRP.createJob( 'Civil Protection Chief',
{
    color           = Color( 5, 255, 0, 255 ),
    category        = 'Civil Protection',
    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 },
    max             = 4,
    salary          = GAMEMODE.Config.normalsalary * 1.45,
    admin           = 0,
    vote            = true,
    hasLicense      = true,
    level           = 4,
    tip             = 'Leader of the Civil Protection organization',
} )

Output

When a player hovers over jobs that have been given a tip, a small box will appear with the tip text.

Tips disappear from view after 5 seconds if player stays hovered. This prevents tips being obnoxious.

Last updated