project-error / npwd

NPWD is a FiveM phone resource written entirely in TypeScript and React.
https://projecterror.dev
Other
351 stars 275 forks source link

Bug: setPhoneDisabled doesn't work #1158

Open k1merpwnz opened 3 months ago

k1merpwnz commented 3 months ago

Development Issue

Yes

Phone Version

3.15.0

Issue Description

When setPhoneDisabled = true, I can still receive notifications and calls (a part of the phone appears at the bottom). The phone is absolutely disabled, because I checked the value from the isPhoneDisabled() export in a loop

With true and false, phone calls continued to arrive. Is it a known bug or did I do something wrong?

Issue Reproduction

1) The player logs in to the server and is automatically set to exports.npwd:setPhoneDisabled(true) 2) Prints in the client console give "true" 3) When trying to call / send notifications to a player whose phone should be disconnected - he receives them

Evidence

No response