TextUI

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 use
interact = '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 strings
local 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"

Simply replace that section with the code below:

    "weed-placement": "<strong>Controls</strong> <br> <strong>[W]</strong>: Move Forward <br> <strong>[S]</strong>: Move Backward <br> <strong>[A]</strong>: Move Left <br> <strong>[D]</strong>: Move Right <br> <strong>[X]</strong>: Cancel <br> <strong>[Space]</strong>: Confirm",
    "table-placement": "<strong>Controls</strong> <br> <strong>[Q]</strong>: Rotate Left <br> <strong>[E]</strong>: Rotate Right <br> <strong>[W]</strong>: Move Forward <br> <strong>[S]</strong>: Move Backward <br> <strong>[A]</strong>: Move Left <br> <strong>[D]</strong>: Move Right <br> <strong>[X]</strong>: Cancel <br> <strong>[Space]</strong>: Confirm",
    "open-shop": "<strong>Smoke on the Water</strong> <br> [E] - Open Shop",
    "search-plant": "<strong>Weed Plant</strong> <br> [E] - Search",
    "check-status": "<strong>Weed Plant</strong> <br> [E] - Check status",
    "enter-lab": "<strong>Weed Lab</strong> <br> [E] - Enter",
    "exit-lab": "<strong>Weed Lab</strong> <br> [E] - Exit",
    "roll-weed": "<strong>Rolling Table</strong> <br> [E] - Start Rolling",
    "bag-weed": "<strong>Bagging Table</strong> <br> [E] - Start Bagging",
    "use-table": "<strong>Weed Table</strong> <br> E - Use"

Save, restart & you're jg-textui or okokTextUI will now be formatted properly!

Last updated