Learn more about easily customizing your TextUI for Weed Growing
Our Weed Growing script supports ox_lib TextUI, jg-textui & okokTextUI! If you wish to use TextUI for your interaction script of choice in Weed Growing, it's simple!
Set interact to textui
Navigate to the config.lua file in lation_weed and go to line 21, you will see this:
-- Set your interaction system below-- Available options are: 'ox_target', 'qb-target', 'interact', 'textui' & 'custom'-- 'custom' needs to be added to client/functions.lua-- We also provide support for various textUI: ox_lib, jg-textui, okokTextUI & qbcore-- Go to client/functions.lua line 3 to choose which textUI to useinteract ='textui',
Make sure your interact is set to 'textui'. If you wish to use jg-textui or okokTextUI you must now navigate to client/functions.lua line 5, where you will see this:
-- You can change the textUI script here-- Options: ox_lib, jg-textui, okokTextUI, qbcore & custom-- We have pre-formatted text for use with jg & okok textUI, visit our docs:-- TODO: insert link to docs info here for updated stringslocal textui ='ox_lib'
Change 'ox_lib' to the TextUI of your choice! If you are using jg-textui or okokTextUI, then continue reading more below.
Are you using jg-textui or okokTextUI?
Then the section below is for you! If you are using ox_lib TextUI, then this section is NOT for you.
Updating the strings
By default, our locales (strings) file is meant to work with ox_lib. However, if you wish you use jg-textui or okokTextUI then you will want to update the strings! Let's open our locales file of choice (in this example, en.json) and find our "textui" section on line 39, like seen below:
"weed-placement": "**Controls** \n **W**: Move Forward \n **S**: Move Backward \n **A**: Move Left \n **D**: Move Right \n **X**: Cancel \n **Space**: Confirm","table-placement": "**Controls** \n **Q**: Rotate Left \n **E**: Rotate Right \n **W**: Move Forward \n **S**: Move Backward \n **A**: Move Left \n **D**: Move Right \n **X**: Cancel \n **Space**: Confirm","open-shop": "**Smoke on the Water** \n E - Open Shop","search-plant": "**Weed Plant** \n E - Search","check-status": "**Weed Plant** \n E - Check status","enter-lab": "**Weed Lab** \n E - Enter","exit-lab": "**Weed Lab** \n E - Exit","roll-weed": "**Rolling Table** \n E - Start Rolling","bag-weed": "**Bagging Table** \n E - Start Bagging","use-table": "**Weed Table** \n E - Use"