Skip to content
View in the app

A better way to browse. Learn more.

LCPDFR.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

RageNativeUI Menu Refresh ?

Featured Replies

Hey,

I'm trying to create a menu with RageNativeUI and I want to display a counter in the menu. To keep it updated in the menu I thought I have to refesh the menu in some way. How do I do that or is there any other way ?

You can do it in your menu's Process event handler, which ticks at every frame render.

My YouTube: Click here. 

My Discord Server - https://discord.gg/0taiZvBSiw5qGAXU

Useful post? Let me and others know by clicking the Like button.
Check out my many script modifications! 
Having issues? LSPDFR Troubleshooter by Albo1125.

  • Author

Thank you . That works. One more question my menu gets loaded if I go on-duty but when I go off-duty and then back on-duty I get one above the other. How can I delete the menu or check if one menu already exists ?

On 21/1/2016 at 6:57 PM, Halfaye said:

Thank you . That works. One more question my menu gets loaded if I go on-duty but when I go off-duty and then back on-duty I get one above the other. How can I delete the menu or check if one menu already exists ?

You  can check if your UIMenu is null, if it is create it.

if(myMenu == null)
{
       //your code here...
}

  • Author

I tried that but it doesn't work. I think the problem is that the plugin gets loaded again when I go on duty again. So the UIMenu is always null because the plugin runs two times seperatly and that's why I get two menus.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.