Skip to main content

Requirements

  • FiveM server with lua54 'yes' support (the resource declares it).
  • ox_lib ensured before cc_lib — required as a hard ox_lib 'locale' dependency and pulled in via '@ox_lib/init.lua'.
  • At least one backing resource per module slot you intend to use: Modules whose backing resource isn’t running are simply absent from the cc table — there’s no fallback.

Steps

1

Place the resource

Copy the cc_lib folder into resources/[cc]/cc_lib/.
2

Ensure boot order

cc_lib probes for backing resources at start, so it must boot after them and before anything that calls into it.
3

Declare the dependency

In any resource calling exports.cc_lib:GetLib(), add cc_lib to fxmanifest.lua:
4

Verify the TaskUI

Join the server, then run /taskui_test in the chat console. A demo task list should appear in the top-right with a master timer, a counter chip, and a per-task countdown chip.

Test commands

The TaskUI module ships a small test harness so you can verify the full surface without writing calling code:
The demo arms a 25s countdown on open_vault the moment that task becomes active, then a 15s countdown on escape_cops later in the sequence — so a single run shows the timer chip ticking, replacing, and clearing.