Giter Club home page Giter Club logo

firescript's Introduction

FireScript

FireScript is a resource for FiveM by Albo1125 that allows players to simulate fires and smoke in FiveM.

Installation & Usage

  1. Download the latest release.
  2. Unzip the FireScript folder into your resources folder on your FiveM server.
  3. Add the following to your server.cfg file:
start FireScript

Commands

  • /startfire NUMFLAMES RADIUS. NUMFLAMES determines the maximum number of flames the fire will have (maximum 100), while RADIUS specifies the radius of the fire in metres (maximum 30). /startfire 40 10 is a good starting point.
  • /stopfire. This stops all fires within a 35 metre radius (you can also extinguish fires normally).
  • /stopallfires. This stops all fires on the map.
  • /startsmoke SCALE. You're also able to create 'smoke without fire' e.g. for a call where someone gets concerned for fire over barbecue smoke. SCALE is replaced by a number (recommended to keep it between 0.5-5) that indicates the magnitude of the smoke. E.g. /startsmoke 1
  • /stopsmoke. Stops all smoke without fire within a 35 metre radius.
  • /stopallsmoke. Stops all smoke without fire on the map.

Improvements & Licensing

Please view the license. Improvements and new feature additions are very welcome, please feel free to create a pull request. Proper credit is always required if you release modified versions of my work and you should always link back to this original source.

Libraries used (many thanks to their authors)

Video

Click here

Screenshots

FireScript FireScript FireScript FireScript

firescript's People

Contributors

albo1125 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

firescript's Issues

Can't remove fires if you do small flames and radius

Can't remove fire.

I have found anything under 5 flames/5 radius, you can't remove the fire. Can not extinguish or /removeallfires.

But when you do anything above 5/5 for example 10 flames / 10 radius. The fire extinguishes perfectly and /removeallfires works.

Memory Leak

A memory leak seems to occur when dismissing fires.

We have found that the fire department contingent of our roleplay community has experienced disconnection, and even memory-protecting system shutdowns.

We performed the following experiment to determine where the leak seems to originate from.

  • Player A is in the FiveM server (following a FireScript restart).
  • Player A starts a fire using startfire 40 10.
  • Player A uses resmon to monitor streaming capacity of the script, which raises to approximately 42MB.
  • Player A extinguishes the flames. After a minute, the streaming capacity is still at 42MB.
  • Player B connects to the server. Bare in mind that Player B has never been in proximity to the fire. Player B's streaming capacity for Fire Script is - (null)
  • Player B teleports to Player A's position (location of the fire), and the streaming capacity remains null for B and 42MB for A.

This suggests that for players who are in range of a fire have a dedicated stream of 42MB (a relatively large proportion), which is not dismissed after the fire is extinguished (and stopallfires & stopallsmoke is run). However, this does not effect new players joining.

Let me know what you think and if you need any further diagnostic information.

Can not put out fire.

I was able to start a fire no issues at all I made a small one flames 3 radius 3.
The stopfire and stopallfires commands did not work. I tried to use the fire truck for 20 minutes still did not put out the fire. Restarted resource and server same issue. Looks Like others are posting same issue. I use ESX framework as well.

Unable to start fire

When typing /startfire 40 10 it says "starting fire" in chat but nothing happens. I have waited a good time as well. The command /startsmoke works perfectly fine, however.

V1.4 /startfire issue

Even with the new update V1.4 the command /startfire has issues to start a fire... like sometimes it does work but it goes out to fast. I reinstalled it 4 times now

Sync Not Working

The script has been put into the server, But the others can see the fire and I can't

Unable to start fire

When you type: /startfire 40 10 false (example) nothing happens.
When you type: /startsmoke 0.5-5 it works

Unable to start fire or smoke

Me and my friend Put the mod in a brand new server and his main server and the fire or smoke doesn't wanna show when we type the commands the commands show up tho What can we do to fix this?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.