gimicze / firescript

OneSync Infinity compatible fire script for FiveM.
https://forum.cfx.re/t/release-fire-script-onesync/1751606
GNU General Public License v3.0
87 stars 35 forks source link

Dispatch #21

Closed frazz1234 closed 2 months ago

frazz1234 commented 2 years ago

The possibility to delete easy the blip when the fire is down or is deleted when your show up on the scene !

The possibility in the config to make dispatch by default for all firefighter, so no need to be a dispatch... just they receive the call whit the sound and let's go !

could be amazing

gimicze commented 2 months ago

The possibility to delete easy the blip when the fire is down or is deleted when your show up on the scene !

You can replace this

https://github.com/gimicze/firescript/blob/86c7ed7297d5fe7e26d21ddafeb7346e3302c271/client/dispatch.lua#L162

with something like Dispatch:clear(Dispatch.lastCall).

The possibility in the config to make dispatch by default for all firefighter, so no need to be a dispatch... just they receive the call whit the sound and let's go !

This is already implemented for ESX. For other frameworks, I would point you to the code following this line:

https://github.com/gimicze/firescript/blob/86c7ed7297d5fe7e26d21ddafeb7346e3302c271/server/main.lua#L579