UI Additions

Opening other UIs through the book !

You can add interactions for a specific type to open a different menu or UI when the top corner button is clicked.

For example:

sconfig.lua

Config.linkList = {
    ['job'] = 'http://rsg-multijob/openuifromxpbook',
    --http://SCRIPTNAME/NUICALLBACKSTRING
}

For this to work, you need to create a callback in the script you want to interact with or use the provided NUI callback from your own scripts. For instance, to make the above example work, add the following to rsg-multijob :

RegisterNUICallback("openThisFromXpBook", function (cb)
    TriggerEvent('rsg-multijob:client:openmenu')
    cb('ok')
end)

Last updated