Installation
Copy the folder and change two parts of ox_lib's fxmanifest.lua.
Requirements
- ox_lib 3.40.x
Steps
- Stop the server and make a backup of your
ox_libfolder. - Copy the contents of the
ox_libfolder from the package into your ownox_libfolder. This adds the folderweb/ko/. Your existing files, includingweb/build, stay as they are. - Open
ox_lib/fxmanifest.luaand make the two changes below. They are also infxmanifest.additions.txtin the package. - Start the server. If it is running, enter
refreshandensure ox_libin the server console and reconnect.
Change 1: ui_page
Replace the line ui_page 'web/build/index.html' with:
lua
ui_page 'web/ko/index.html'Change 2: files
Add these lines inside files { ... }:
lua
'web/ko/index.html',
'web/ko/*.js',
'web/ko/*.css',
'web/ko/*.svg',
'web/ko/fonts/*.woff2',
'web/ko/fa/css/*.css',
'web/ko/fa/webfonts/*.woff2',:::warning
Keep 'web/build/index.html' and 'web/build/**/*' in files { } and do not delete the web/build folder. ox_lib checks on start that web/build/index.html exists.
:::
Updating ox_lib
The web/ko folder stays when you copy a new ox_lib version over the old one. The new fxmanifest.lua replaces yours, so make the two changes again afterwards. If you delete the ox_lib folder before updating, copy web/ko back in.
Removing
Delete ox_lib/web/ko and set ui_page in fxmanifest.lua back to 'web/build/index.html'. The extra lines in files { } can stay.
Was this page helpful?
