MrBounty/PZ-UI_API

Example of using toggle?

Closed this issue · 1 comments

I can't figure out how to toggle the UI.

To have the UI work like the inventory UI in the base game, clicking it opens, clicking again closes.

Hello, just use that:

UI:open()                       -- Display the UI
UI:close()                      -- Hide the UI
UI:toggle()                     -- Toggle the UI

From: https://github.com/MrBounty/PZ-UI_API/blob/main/UI%20functions.md