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. Categories

▸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

DarkRP.createCategory
{
    name            = 'Citizens',
    categorises     = 'jobs',
    startExpanded   = true,
    color           = Color( 0, 107, 0, 255 ),
    canSee          = fp{ fn.Id, true },
    sortOrder       = 100,
    tip             = 'People who make the community run',
}
DarkRP.createCategory
{
    name            = 'Pistols',
    categorises     = 'weapons',
    startExpanded   = true,
    color           = Color( 0, 107, 0, 255 ),
    canSee          = fp{ fn.Id, true },
    sortOrder       = 100,
    tip             = 'Small pew pew',
}

Output

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

The tooltip feature can also be applied to entities, shipments, vehicles, food, etc.

PreviousCategoriesNextRules

Last updated 4 years ago

◾