SnailyCAD / fivem-integrations

FiveM Integrations for SnailyCADv4
https://docs.snailycad.org/docs/fivem-integrations/scripts
MIT License
7 stars 5 forks source link

Receiving 911 call notifications when off-duty #111

Closed Georgie15 closed 1 month ago

Georgie15 commented 4 months ago

What version of Node.js are you using?

18

What operating system are you using?

Windows

What version of SnailyCAD are you currently using?

1.79.1 - a11b60f

Describe the Bug

Players who are off-duty will receive 911 call notifications. The status of the officier even confirms they're off-duty yet the notifications appear image

Expected Behavior

When the player is 10-7/off-duty, notifications should no longer be sent.

To Reproduce

Use the in-game integrations, create a 911 call without going on duty and the notification appears.

Infiniti-Development commented 4 months ago

@Georgie15 can you please update to Node.JS 21+

WhitigolProd commented 4 months ago

@Georgie15 can you please update to Node.JS 21+

This issue would be unrelated to the node version. SnailyCAD is stable and was tested thoroughly on node 18. SnailyCAD is not widely tested on any non-lts version of node. Node 21 is unstable and can include many bugs that could interfere with the way SnailyCAD operates, that's why we recommend users to only use stable LTS versions of node. (18.x, and 20.x have been tested and are supported).

cc @Infiniti-Development

SystemXDev commented 2 months ago

Hello Everyone I'm Not Apart Of Snaily-Cad But I'm Looking Into This To Help People!

Gameruxstudiosnz commented 2 months ago

Has anyone received an update on this bug and any ideas regarding its origin? I was thinking it could be related to permissions not being set correctly for the off-duty and on-duty roles, causing the system to mistakenly believe that the player is always on duty.

Additionally, does the system send notifications to civilians as well?

Georgie15 commented 2 months ago

Has anyone received an update on this bug and any ideas regarding its origin? I was thinking it could be related to permissions not being set correctly for the off-duty and on-duty roles, causing the system to mistakenly believe that the player is always on duty.

Additionally, does the system send notifications to civilians as well?

No updates yet, I really hope it gets fixed soon because its a massive bug that ruins all FiveM integrations.

It does send notifications to civilians. Anyone in-game gets the notification regardless of their duty status.

Gameruxstudiosnz commented 2 months ago

sweet thanks we will have a look in to this bug

is there anything in console if there is error send it here please

MarshyMelloow commented 2 months ago

sweet thanks we will have a look in to this bug

is there anything in console if there is error send it here please

FYI, the notifications also duplicate when the FiveM character dies in game. Weird.