HighLeaks
Help

LB Tablet ( Patched ) - [to properly close the tablet with esc]

nopixeliloveyou nopixeliloveyou Started 15 replies 1,509 views
#1






[size=6]LB Tablet Here[/size]

[size=6]Patch to properly close the tablet with ESC Here[/size]



[size=7][color=rgb(226,]Just drag the patch into the file[/color][/size]



[color=rgb(250,][size=6]Here's what I did for those who know a little bit of coding.[/size][/color]

[size=6][color=rgb(250,]Thank you[/color][color=rgb(41,]@@dawnduskyy[/color] [color=rgb(250,]for explaining the problem to me correctly.[/color][/size]



In client/client.lua, the function that opens/closes the tablet (export ToggleOpen) calculates the target state incorrectly:

if nil == A0_2 then
L3_2 = TabletOpen
end
L3_2 = not L3_2 or L3_2
L3_2 = true == L3_2


L3_2 = not L3_2 or L3_2 is always true (logical identity: ¬X ∨ X = true).
Result: L3_2 (the desired state) is always true ⇒ the function believes that we want to open the tablet.
Then, further on, there is a safeguard.

if L3_2 == TabletOpen then
debugprint("ToggleOpen: already open/closed")
return
end


If the tablet is already open and we try to close it, as L3_2 is still true, we fall into “already open” and the function exits without executing SetNuiFocus(false,false), SendReactMessage("setVisibility", false), etc. → hence “the tablet does not close”.

We replace this calculation with the correct logic:

if A0_2 (parameter) is nil → we toggle (not TabletOpen)
otherwise → we use exactly the passed value (A0_2)

- if nil == A0_2 then
- L3_2 = TabletOpen
- end
- L3_2 = not L3_2 or L3_2
+ if nil == A0_2 then
+ L3_2 = not TabletOpen
+else
+ L3_2 = A0_2
+ end
L3_2...

#1
Hey Why the Photos Not showing in the Albums ?

I Done the APIs and Discord Webhook but the photo saving but not showing the Albums Can you help that ?
#2




altspace0078,

wrote:



Hey Why the Photos Not showing in the Albums ?

I Done the APIs and Discord Webhook but the photo saving but not showing the Albums Can you help that ?




Yes, I can help you, but it's a very broad request, lol. Be more specific;

The album for jobs or not (police, ambulance)?

What capture are you talking about, selfies, captures, etc.?

I need all the details....





Basically, what you need to know



Your Discord webhooks in server/apiKeys.lua are only used for logging (event embeds). They don't handle photo u...


#3




nopixeliloveyou,

wrote:



Yes, I can help you, but it's a very broad request, lol. Be more specific;

The album for jobs or not (police, ambulance)?

What capture are you ta...




Can we talk in Discord ?

What your Id ?

The photo Saving in the Fivemanages but not showing in the Albums app
#4
There is a error when trying to create a bolo or smth
#5
It has a error when i want to create a report also when i setup the iPad and then restart the script i need to setup it again can you fix that pls?
#6




sigmaboy,

wrote:



It has a error when i want to create a report also when i setup the iPad and then restart the script i need to setup it again can you fix that pls?




[size=6][color=rgb(250,]I can but not right away, I'll do it later today :-)[/color][/size]
#7
I’ve encountered two additional issues with the LB-Tablet:



  1. Custom Wallpaper Bug:

    When setting a custom wallpaper, it correctly appears in the settings preview, but it does not display on the tablet’s actual home screen. Instead, the background either remains blank or shows the default wallpaper, making it seem like the custom wallpaper hasn't been applied.

  2. Camera Photo Visibility Issue:

    Photos taken directly with the tablet’s camera are saved correctly in Fivemenage, but they do not appear in the Photos app or any albums. Instead of showing the image, a black screen is displayed where the photo should be.

    However, photos imported from the LB-Phone show up without any issues, which suggests the problem only affects pictures taken with the tablet itself.



Please let me know if you need screenshots or logs to help reproduce the issue.
#8
I got that its cool but it lacks some cool new feature that truly brings a better mdt then other server bc the more feature the better the experience
#9
I’ve encountered another bug after the ones I mentioned earlier. Specifically, in the official version of the tablet, there should be a phone unlock feature in the police MDT, but this function is missing in the current version.
#10




nopixeliloveyou,

wrote:



[size=6][color=rgb(250,]I can but not right away, I'll do it later today :-)[/color][/size]




Reminder can you fix it i would really appreciate it
#11




nopixeliloveyou,

wrote:













[size=6]LB Tablet Here[/size]


[size=6]Patch to properly close the tablet with ESC Here[/size]





[size=7][color=rgb(226,]Just drag the patch into the file[/color][/size]





[color=rgb(250,][size=6]Here's what I did for those who know a little bit of coding.[/size][/color]


[size=6][color=rgb(250,]Thank you[/color][color=rgb(41,]@@dawnduskyy[/color] [color=rgb(250,]for explaining the problem to me correctly.[/color][/size]






In client/client.lua, the function that opens/closes the tablet (export ToggleOpen) calculates the target state incorrectly:



L3...


#12
Thank you for the code needed to turn off the tablet
#13
does the fix work guys?
#14




nopixeliloveyou,

wrote:













[size=6]LB Tablet Here[/size]


[size=6]Patch to properly close the tablet with ESC Here[/size]





[size=7][color=rgb(226,]Just drag the patch into the file[/color][/size]





[color=rgb(250,][size=6]Here's what I did for those who know a little bit of coding.[/size][/color]


[size=6][color=rgb(250,]Thank you[/color][color=rgb(41,]@@dawnduskyy[/color] [color=rgb(250,]for explaining the problem to me correctly.[/color][/size]






In client/client.lua, the function that opens/closes the tablet (export ToggleOpen) calculates the target state incorrectly:



L3...




let me try and see if its any good even
#15
Amazing work, do you know why the phone doesn't show nearby numbers? Thanks.