@ox_lib/init.lua could not be found
Your resource depends on ox_lib but the server can't find it. The real cause and fix: folder name, startup order and shared_script.
The problem
When starting a resource, the console says "@ox_lib/init.lua could not be found" and the resource doesn't start.
The cause
The resource loads ox_lib with `shared_script '@ox_lib/init.lua'`, but ox_lib isn't installed, the folder isn't named exactly `ox_lib`, or it starts after the resource that needs it.
The solution
Make sure ox_lib exists, is named ox_lib and starts first:
lua
-- fxmanifest.lua of YOUR resource
fx_version 'cerulean'
game 'gta5'
shared_script '@ox_lib/init.lua'
-- server.cfg (order matters):
-- ensure ox_lib
-- ensure your_resourceStep by step
- 1.Download ox_lib from Overextended and place it in resources; the folder must be named exactly `ox_lib`.
- 2.In server.cfg put `ensure ox_lib` BEFORE the resources that use it.
- 3.Check that the resource references `@ox_lib/init.lua` (with the at sign, which points to the resource).
- 4.Restart the whole server, not just the resource.
Related guides
Last updated: 2026-06-19. Crxative-M is not affiliated with Cfx.re or Rockstar Games.
