Objective
The Objective API is a flexible HUD component designed for the right side of the screen. It can display everything from a single line of text to complex instruction sets with multiple sections, lists, and rich text formatting.
🛠️ Exports
ShowObjective
Displays the objective card with specified content and positioning.
exports['ak47_lib']:ShowObjective(text, title, position)
--
Lib47.ShowObjective(text, title, position)Parameters:
Argument
Type
Optional
Description
text
String/Table
No
The content to display. Can be a string, a simple list, or a complex sectioned table.
title
String
Yes
The header title. Defaults to Config value.
position
String
Yes
Screen position: 'top', 'center', or 'bottom'.
HideObjective
Removes the objective card from the HUD.
exports['ak47_lib']:HideObjective()
-- or
Lib47.HideObjective()🧬 Data Structures
The text parameter is highly versatile and handles four main types of input:
1. Simple String
A single line of descriptive text.
2. Simple List
An array of strings rendered as a bulleted list.
3. Named Section
An object containing a sub-header and a list.
4. Multi-Section Array
A complex array containing multiple sections or footer text.
💡 Examples
Example 1: Basic Mission Objective
Ideal for simple tracking at the top right of the screen.
Example 2: Editor or Tool Controls
Using the center position and sections to explain controls to a player.
Example 3: Dynamic Updates
You can overwrite the current objective simply by calling the export again.
Example 4: Instruction With Buttons

🎨 Visual Features
Night Mode: The card background automatically dims between 21:00 and 06:00 for better visibility.
Rich Text: Supports the same
<k>(Key) and<m>(Mouse) tags as the Checklist system.Right-Aligned: All text and list bullets are automatically aligned to the right edge of the screen.
Last updated