Custom Pause Menu Navbar
Adding
Head over to /shared/ui_cfg/config_pausemenu.lua
file and find:
In that example, we will add Logout action for our Multicharacter.
Path object explained
Path is the object that determines payload which will be executed after user interaction.
type
This should always be 'custom_payload'
export
Object revised beneath
icon
Export object explained
There's 2 options to use it properly. There's an export object which obviously is only client-sided. You can use it for any kind of interaction you'd like to. Other is event, which needs to be determined whether it's client sided or server sided. Also, take a note that you can parse params, but there's a catch. Do not use it as an object since we unpack the table!
Export object
resource
Determines parent resource of the selected export
exportFunction
Exported function name
params
Arguments of the function
Event object
type
Determines if it's client or server side event
name
Registered event name
params
Arguments of the event
Examples
Export
Event
Last updated