Requirements
-
FiveM server with
lua54 'yes'support (the resource declares it). -
ox_libensured beforecc_lib— required as a hardox_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
cctable — 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.