Theme editor

  • If you experience issues login with Discord, reset your password and wait 3 minutes for the email!

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

nopixeliloveyou

VIP
VIP Member
Joined
Aug 7, 2025
Messages
122
Reaction score
11
Points
18
Credits
556
Thread owner


LB Tablet Here
Patch to properly close the tablet with ESC Here



Just drag the patch into the file




Here's what I did for those who know a little bit of coding.
Thank you @dawnduskyy for explaining the problem to me correctly.

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 = true == L3_2
 
Last edited:
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 ?
 
Thread owner
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 uploads. Photos go through Fivemanage or LBUpload (or a Custom method).

Why are "photos saved but not displayed in Albums"?

The server expects a metadata field strictly equal to selfie / screenshot / import. If the client accidentally sends selfies / screenshots / imports, the server marks the metadata as invalid ⇒ the album counters/sections remain empty.

The default configuration blacklists discordapp.com; since cdn.discordapp.com contains this subdomain, previews of images hosted via Discord's CDN may be blocked by the "external image allowlist/denylist" option, hence the thumbnails/displays that don't appear.
 
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....
Can we talk in Discord ?
What your Id ?
The photo Saving in the Fivemanages but not showing in the Albums app
 
Last edited:
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.
 
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
 
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.
 
Back
Top Bottom