#[Phone] new export not working
1 messages · Page 1 of 1 (latest)
Product: Phone
Issue: New export always returns false, throws error in the console
When: When phone is being pulled up slightly to show a notification
How to recreate: Try to send a notification to your self, which will make the phone pull up slightly on the screen (screenshot bellow)
Does this happen for everyone: Yes
Attachment: <VIDEO ON HOW TO RE-CREATE/ IMAGE>
Version: latest
Framework: ESX
Has this bug appeared more than once? If so, how often?: Every time the phone pulls up
you're using it wrong.
exports['lb-phone']:IsPhoneOnScreen()
clientside
if it didn't exist, you would get this error:
you didnt add :
exports['lb-phone']**:**IsPhoneOnScreen()
Actually it's always false
can you send me the fixx
You don't need to use the export at all, you always get this error when you open and close it.
Sorry about that, I've pushed a hotfix that fixes this. Please try it out and let me know 😄
Which files have been changed?
you can keep all your changes, only client/main.lua has been changed
i'm downloading it rn, and I will check it
sorry for being late I woke up an hour ago haha
tested it, it returns true when you pull up the phone fully
I already made my HUD go up when the new export is true, so I can test it that way 🙂
what do you mean?
prob like this one
local isOpen = exports["lb-phone"]:IsOpen()
it's supposed to return true if the phone is open though
Yeah, but the idéa was to have an export that is true when you get a message or somethin
as soon as the phone "pops" up
as described in the #🔨updates
- New export, exports['lb-phone']IsPhoneOnScreen(), checks if the phone is visible on screen (doesn't need to be fully opened)
Yeah that^^
yes?
but it's still supposed to return true if it is open, since it is on the screen
Yeah, that is no problem
the problem is "https://cdn.discordapp.com/attachments/1356360838419841264/1356541751480815676/image.png?ex=67ecf174&is=67eb9ff4&hm=23d4459ea158d7e33bed624cd0ca9bd341ca87a47dd1acdd15b2b6be1c4cd442&" there it's still false
says false when i get my pre-made message ant he phone opsup
says true when the phone is fully opened (as it should)
This has been fixed for the next update.
And when will the next update be?
usually in a week if i'm not way off
It’s just weird to not push a important fix like this immediately.
@abstract torrent could you push the hotfix for this? please
Bro just wait next update and use tue oldest export
Or use this and with the next update it ll fix automatically
sure i don't have nothing better to do than have a fucked up HUD and wait till next update to fuck for 1 hour to update files
Revert your changes, i have same your problem
Do you not backup your folders before changing them? It should be as easy as a copy paste back to your live resource folder.
I have github, but I'm not reverting everything because it's a problem to just push a hot-fix.
I hear ya buddy but if it's critical like it sounds to you, then a quick paste of the old phone folder is a sufficient, work around
The export never worked, there has never been a fix for the part he is talking about
Ah gotcha thought he meant the new update
Yeah waiting for update then is my preference for now
Can confirm works now
Having these ran (as shown) however always return true if the code seems to trigger the phonescreen for some reason
might not work exakly like you want https://discord.com/channels/1032005998895960135/1362883953371119797 but tell me if you got it working 😄
I’m not sure if I’ll update the phone, I’m fed up with replacing all files and redoing my changes to framework files really
only once more and you never have to again 😄