#qb draw text interference issue
1 messages · Page 1 of 1 (latest)
Could always try a different position
https://docs.qbcore.org/qbcore-documentation/qb-core/drawtext
i wouldnt want them both to pop up. the hidetext in my scipt also hides text from qb garage. the draw text works fine when i approach a car and can loot item but when i go to a garage the draw text doesnt show for parking but when i remove line 354 it pops up but e prompt for stealing the item doesnt go away
Your code removes the drawtext when the distance isn't less than 1.7
when distance is less than 1.7. you will recieve a prompt if certain requirement are met, but if you decide not to loot and walk away it closes
if you loot it closes, but when i get to a garaage the draw text for "parking" doesnt show even though they are 2 different scripts and mine has a unique id attatched to it
is line 360 not disabling it regardless?
that makes it close when looting is complete i had to make a check for distance because if prompt was shown it didnt close unless you looted the item
Sorry not sure I was reading your code right
nah i get it every code is different i can share more if you need me to. i just thought i was doing something wrong with the exports.
Check out the exports/events in the docs I linked and try some things out
exports['qb-core']:HideText() in a loop sounds horribly inefficient but it's the first thing I'd try
yea i tried that also lol i even tried to go for a target but qb drawtext has been the best option for me so far, i tried to use oxlib draw text but my game crashes when prompts show for some reason
Try DUI next 😆
No thanks i like my freedom 😂 lol ill check it out
Cool, sorry I couldn't help more - not really encountered your issue before myself.