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.

Make a non-callout script/plugin

Featured Replies

Hello!

I am fairly new to the API still. Managed to get some callouts working, and I somewhat understand how the API is built regarding the core of a callout. 
If I would like to make a plugin that did something while you were on duty, but not necessarily had to do with callouts - could one use the entry function and the "process" in order to add other functionality such as menus/features in LSPDFR (gta 5)? If I think of it correctly, I believe Rage gives you some room to play with.

I saw some requests/suggestions for some things that I would like to have done, and just need a little kick in the right direction to get started properly.
den

Edited by denNorske

You can start a new fiber with an infinite loop in the entry method like that:

void Main()
{
  var fiber = GameFiber.StartNew(Process);
}

void Process()
{
  while(true)
  {
    //your code
    GameFiber.Yield();
  }
}

That's only a general idea ofc. You can do whatever you want: a custom callout subsystem, world events, GUI. There are no limitations.

Edited by LtFlash

  • Author
11 hours ago, LtFlash said:

You can start a new fiber with an infinite loop in the entry method like that:


void Main()
{
  var fiber = GameFiber.StartNew(Process);
}

void Process()
{
  while(true)
  {
    //your code
    GameFiber.Yield();
  }
}

That's only a general idea ofc. You can do whatever you want: a custom callout subsystem, world events, GUI. There are no limitations.

Thanks for explaining. This was what I had in mind 😉 

 

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.