Arivia
Browse ScriptsDownload RLIB
v3.x
v3.x
  • Introduction
  • Select Version
  • Showcase
  • Changelog
    • ◾3.0.0.6-beta
    • ◾3.0.0.5-beta
    • ◾3.0.0.4-beta
    • ◾3.0.0.3-beta
    • ◾3.0.0.2-beta
    • ◾3.0.0.1-alpha
  • FAQ
    • ◾Add Food Categories
    • ◾Addon Won't Show
    • ◾Incompatible Addons
    • ◾Custom Category Colors
    • ◾Hide Unavailable Jobs
    • ◾Modified Script
    • ◾Refunds
    • ◾Script Errors
    • ◾When Are Updates?
  • ❱ Setup
    • ◾Install
    • ◾Verify
    • ◾Workshop
    • ◾Docs/Web
  • ❱ Configuration
    • ◾Env
    • ◾Fonts
    • ◾Languages
    • ◾Settings
      • sh_4_tabs.lua
        • bUseModelImage
        • styleB
    • ◾Visual Blueprints
  • ❱ First Use
    • ◾Binds
    • ◾Console Commands
      • ▸arivia.listjobs
      • ▸arivia.getjob
      • ▸arivia.setjob
  • ❱ Developers
    • ◾Jobs
      • ▸Parameters
        • tip
        • NeedJob
        • NeedGroup
      • ▸Sorting
    • ◾Entities
      • ▸accent
      • ▸allowed
      • ▸customHideUnavail
      • ▸level
      • ▸prestige
      • ▸price
      • ▸tip
    • ◾Food
      • ▸category
    • ◾Categories
      • ▸tip
  • ❱ Internal
    • ◾Rules
    • ◾Web Demo
  • ❱ DOC REFERENCES
    • ◾Status
Powered by GitBook
On this page
  • Alias
  • Source
  • Requires
  • Type
  • Example
  • Output
  1. ❱ Developers
  2. Jobs
  3. ▸Parameters

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.

Previous▸ParametersNextNeedJob

Last updated 4 years ago

◾
Mayor job without tip to show difference.