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 Progress bar independent of system performance?

Featured Replies

So I and @ziipzaaapM16A4 have an issue with his plugin (Search Vehicle Plugin) that involves the progress bar being filled up by using a loop,

(while KeyPressed => ProgressBar += 0.01) which means that the faster the CPU, the faster the progress bar fills and the action finishes. On my old PC I would play on 25-30 FPS and searching a car would take extremely long. (Double the time it would take for him playing on 60 FPS, duh).

 

While writing this I suddenly found it logical - the slower the game, the slower the action. However, getting into a car, for instance, doesn't feel slower whatsoever. Obviously, the game isn't slower just because of lower frame rate.

 

 His workaround was to have a multiplier in the ini.

 

Now I need a progress bar for my Pursuit on the Fly! plugin and I'm not really into the whole multiplier workaround. Is there another, more consistent way to fill a progress bar?

Logging in...

Launching game...

Error launching game: Cannot load while loading. Please log out and retry.

Logging out...

Error logging out. You are not logged in. You need to be logged in to log out. Please log in to log out.

On 5/2/2020 at 10:48 PM, LMS said:

If you know how long it takes, just base the progress on the time elapsed so far.

Do you have details about a timer class/functions.

Im interested, too.

Take a look at my Plugins:

AmbientAICallouts: Ai get calls too. Callouts can turn into a backup request for the player [YouTube Link]

Search Vehicle Plugin: Simple and more Immersive Vehicle Search Plugin [YouTube Link]

What Was You Name Again?: Get the name of a Suspect even when arrested and placed in your Vehicle [YouTube Link]
Corpse Inspection:  Investigate the corpse. Interact and search for details in a more Cinematic way  [YouTube Link]
[WIP] EnvoirementalCallouts: A couple of Callouts and WorldEvents that are likely to happen to you while you're on duty [Youtube Link]

[OnHold] EMS Support: Be the First Responder of Medical Emergency's and do CPR on Patients [YouTube Link]

 

spacer.png

Checkout my Patreon for Early Access to my mods                                       checkout my Discord Server

  • Management Team
23 minutes ago, ziipzaaapM16A4 said:

Do you have details about a timer class/functions.

Im interested, too.

 

It really is just getting the current game time (in the Game class) and comparing it to the start time. Now you have the time elapsed. Time elapsed / Total Time it should take is your progress.

Please do not PM me unless really necessary (knowing you helps). If you think you need my attention in a topic, tag me.

Here's what I use for my felony stop mod:

//Initial
ControlButtonTime = 0f;

//Update
ControlButtonTime += Game.FrameTime;	
initiateFelonyControlHoldTimerBar.Percentage = ControlButtonTime / (HoldDuration / 1000f);	//called each tick

//HoldDuration in milliseconds

 

  • Author
On 5/7/2020 at 5:47 PM, LMS said:

 

It really is just getting the current game time (in the Game class) and comparing it to the start time. Now you have the time elapsed. Time elapsed / Total Time it should take is your progress.

Oh, I thought you were talking about using the system time.

Logging in...

Launching game...

Error launching game: Cannot load while loading. Please log out and retry.

Logging out...

Error logging out. You are not logged in. You need to be logged in to log out. Please log in to log out.

  • Management Team
21 hours ago, TheUniT said:

Oh, I thought you were talking about using the system time.

 

You can use the system time, but it will only work as long as the game is not paused whilst your timer is ticking.

Please do not PM me unless really necessary (knowing you helps). If you think you need my attention in a topic, tag me.

  • 2 weeks later...
On 5/9/2020 at 4:02 PM, LMS said:

 

You can use the system time, but it will only work as long as the game is not paused whilst your timer is ticking.

 

 yeah, i saw this bug at the Dispatch Checkup Script by @sloosecannon

Take a look at my Plugins:

AmbientAICallouts: Ai get calls too. Callouts can turn into a backup request for the player [YouTube Link]

Search Vehicle Plugin: Simple and more Immersive Vehicle Search Plugin [YouTube Link]

What Was You Name Again?: Get the name of a Suspect even when arrested and placed in your Vehicle [YouTube Link]
Corpse Inspection:  Investigate the corpse. Interact and search for details in a more Cinematic way  [YouTube Link]
[WIP] EnvoirementalCallouts: A couple of Callouts and WorldEvents that are likely to happen to you while you're on duty [Youtube Link]

[OnHold] EMS Support: Be the First Responder of Medical Emergency's and do CPR on Patients [YouTube Link]

 

spacer.png

Checkout my Patreon for Early Access to my mods                                       checkout my Discord Server

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.