♾️
InfinityPulse
🎮 Discord📺 Youtube🛒 Tebex
  • Introduction
  • RedM
    • 🌿Herbalist System
      • Installation
      • Commands
      • Herbalist Skills
    • ⭕Company Blips
      • Installation
      • Config
    • ⚔️Bandits Ambush
      • Installation
      • Config
    • 📖XP System
      • Installation
      • Types
      • Exports
      • UI Additions
  • 💬Alert Dialogue
    • Installation
    • Exort
  • FiveM
    • 🌟VIP System
      • Installation
      • Exports
    • 💱Money Laundering
      • Configuration
      • Server/Framework support
  • DATA TABLE
    • Export
  • 📦Crate Drop
    • Installation
    • Configuration
  • 💬3D Text UI
    • Installation
    • Configuration
    • Exports
  • 📺City Hall
    • Installation
    • Configuration
Powered by GitBook
On this page
Edit on GitHub
  1. RedM
  2. XP System

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
}

The string in the NUI Callback has to be unique, or copy the one that your script is using and use that !

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)

PreviousExportsNextAlert Dialogue

Last updated 1 month ago

📖