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.

Start a Controlled Fire?

Featured Replies

Hello.
 

I know others have already implemented that, but how it is possible to start a Controlled Fire?  By Controlled, I mean specified Area and X Minutes duration. 

The purpose is to start the controlled fire in a Callout.


I have only found outdated info in this topic, so I would appreciate a little updated code!

Thank you!

HELLO!!     I'm a Greek guy and YouTuber.   I really like Modding and playing LSPDFR!  I'm  very familiar with Programming (Coding) and PC Hardware / Software. I'm also a Cuber ( I Solve Rubicks Cubes and other kinds).   

My YouTube Channel:  https://www.youtube.com/c/ATGGGR/

 

 

 

  • Community Team

I've been trying to do the same. There is Rage.fire entity, but it has no way to spawn it. You can set set the duration it burns, position, and parent etc, but can't create a new one that I can see. I've resorted to using an explosion to start a fire but it is not very reliable.

Use the native START_SCRIPT_FIRE

int START_SCRIPT_FIRE(float X, float Y, float Z, int maxChildren, BOOL isGasFire)
  
// Starts a fire:  
// xyz: Location of fire  
// maxChildren: The max amount of times a fire can spread to other objects. Must be 25 or less, or the function will do nothing.  
// isGasFire: Whether or not the fire is powered by gasoline. 

 

[REL] Coastal Callouts: An action-packed mod with new vehicles, maps, capabilities, and callouts in and around the waters of Los Santos

[REL] Police Tape: Make your scenes more realistic while stopping peds and traffic

[REL] Better EMS: Realistic and dynamic EMS response

Join the Parks Benefactor Program to support my work and get early beta access!

On 9/3/2019 at 9:34 PM, AlexanderK. said:

Hello.
 

I know others have already implemented that, but how it is possible to start a Controlled Fire?  By Controlled, I mean specified Area and X Minutes duration. 

The purpose is to start the controlled fire in a Callout.


I have only found outdated info in this topic, so I would appreciate a little updated code!

Thank you!

 

@NoNameSet Has a Fire wrapper class that he made a long time ago.  https://gist.github.com/NoNameSet/caf779fd7385f1f77b135d52c807e807 

  • Community Team
17 hours ago, PNWParksFan said:

Use the native START_SCRIPT_FIRE


int START_SCRIPT_FIRE(float X, float Y, float Z, int maxChildren, BOOL isGasFire)
  
// Starts a fire:  
// xyz: Location of fire  
// maxChildren: The max amount of times a fire can spread to other objects. Must be 25 or less, or the function will do nothing.  
// isGasFire: Whether or not the fire is powered by gasoline. 

 

Thank you so much, I have gone over native functions so much yet I missed this one, appreciate the help.

  • Author
On 9/8/2019 at 11:26 AM, PNWParksFan said:

Use the native START_SCRIPT_FIRE


int START_SCRIPT_FIRE(float X, float Y, float Z, int maxChildren, BOOL isGasFire)
  
// Starts a fire:  
// xyz: Location of fire  
// maxChildren: The max amount of times a fire can spread to other objects. Must be 25 or less, or the function will do nothing.  
// isGasFire: Whether or not the fire is powered by gasoline. 

 

 

12 hours ago, 420Chuur said:

 

@NoNameSet Has a Fire wrapper class that he made a long time ago.  https://gist.github.com/NoNameSet/caf779fd7385f1f77b135d52c807e807 

 

8 hours ago, SuperPyroManiac said:

Thank you so much, I have gone over native functions so much yet I missed this one, appreciate the help.

Thank you so much guys!

HELLO!!     I'm a Greek guy and YouTuber.   I really like Modding and playing LSPDFR!  I'm  very familiar with Programming (Coding) and PC Hardware / Software. I'm also a Cuber ( I Solve Rubicks Cubes and other kinds).   

My YouTube Channel:  https://www.youtube.com/c/ATGGGR/

 

 

 

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...

Similar Content

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.