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.

GodlyDev

Members
  • Joined

  • Last visited

Reputation Activity

  1. Like
    GodlyDev reacted to LMS in What does GameFiber class exactly means?   
    A GameFiber is essentially its own thread. Now, why is this important? While GTA V ticks scripts one at a time (so no benefit for multiple threads here), it allows you to use the commands you already mentioned. You can spawn a new GameFiber, have it do something and then wait for 5 seconds before doing something else. This will not interrupt any other fiber or game code and RAGE Plugin Hook will automatically resume the waiting fiber after 5 seconds for you and it will continue execution. So whenever you deal with operations that need to wait or handle blocking resources, using a GameFiber might be a good idea.
     
    A word of caution though: For LSPDFR itself we have largely moved away from having many fibers like we used to in previous versions. The reason being that the code is less predictable since the order in which fibers will execute is more or less random and other plugin fibers might run in between. To save resources we like to do a few things only once per tick, which would not be possible if we used many fibers. For instance, at the start of the tick, we invalidate all entities that no longer exist and remove their internal tasks etc. This means that tasks down the road do not have to worry about running on a non-existent entity, saving us some call time as well. If we used fibers for everything like we did before, we would always have to double check. So while fibers provide a lot of benefits and are generally quite lightweight, for large scale projects they can cause more harm than good and should be used with caution.
  2. Like
    GodlyDev reacted to HazyTube in Any simple examples for ped spawning?   
    private Ped pedName pedName = new Ped(Ped String or Hash, Vector3, Heading); Also make sure you block gta from taking over the ped and despawning it:
    pedName.IsPersistent = true; pedName.BlockPermanentEvents = true;  
    For the spawn point, you need to get the coordinates, I recommend using this tool for that:
    It's really nice if you want a lot of spawn points, it can save them to an XML file.
  3. Like
    GodlyDev reacted to LMS in Any simple examples for ped spawning?   
    Heading refers to the orientation of the ped/entity in the game world, a value ranging from 0-360 degrees. It is the 2D (in that it does not take up/down into account) representation of an entity's direction.
  4. Like
    GodlyDev got a reaction from HazyTube in Any simple examples for ped spawning?   
    Whoa this is great! Thanks for your help
    But what does 3rd argument Heading means?
  5. Like
    GodlyDev got a reaction from HazyTube in Where can I find classes of Callouts development?   
    Thanks I gotta try

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.