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.

GameFiber.Hibernate

Featured Replies

Okay so I'm looking to use GameFiber.Hibernate in my coding but my only issue is that I cannot get it to waken. Maybe it's not possible but that's why I'm here. So I need the GameFiber hibernation to waken when LocalPlayer.DistanceTo PedHome is <1 & Vehicle Speed is also <1. Also if it makes a difference this code will not be within a loop. Thanks. Any help getting this working would be great, thanks so much. 

ScottyTooHotty

Once you hibernate a fiber it can only wake if the Wake method gets called from other fiber.
E.g:
GameFiber myFiber = GameFiber.StartNew(delegate
{
     //your code
     GameFiber.Hibernate(); //it will wait until the Wake method gets called
});

// in other fiber you will have to do this when you need the code above to continue
myFiber.Wake();

 

That might be too complex and unnecessary for what you want, just create a loop and when your condition is reached break it.
E.g:
while(true)
{
     GameFiber.Yield();
     if(yourCondition)     // once your condition is reached it will exit the loop
         break;

// your code after the condition

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.