#qb draw text interference issue

1 messages · Page 1 of 1 (latest)

feral sun
#

I'm not sure you can have multiple qb DrawTexts up at once

halcyon solstice
#

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

feral sun
#

Your code removes the drawtext when the distance isn't less than 1.7

halcyon solstice
#

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

feral sun
#

is line 360 not disabling it regardless?

halcyon solstice
#

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

feral sun
#

Sorry not sure I was reading your code right

halcyon solstice
#

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.

feral sun
#

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

halcyon solstice
#

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

feral sun
#

Try DUI next 😆

halcyon solstice
#

No thanks i like my freedom 😂 lol ill check it out

feral sun
#

Cool, sorry I couldn't help more - not really encountered your issue before myself.