Drawtext UI
Step-by-step installation guide, common issues & solutions, code snippets, error codes, config previews, locales previews, SQL previews, and changelogs; all in 1 easily accessible place.
Translate
INSTALLATION GUIDE
How to use it?
Citizen.CreateThread(function()
local alreadyEnteredZone = false
local text = '<b>Title</b></p>[E] Press E to be bald'
while true do
wait = 5
local ped = PlayerPedId()
local inZone = false
local dist = #(GetEntityCoords(ped)-vector3(0,0,0))
if dist <= 5.0 then
wait = 5
inZone = true
if IsControlJustReleased(0, 38) then
TriggerEvent('add your event here')
end
else
wait = 1000
end
if inZone and not alreadyEnteredZone then
alreadyEnteredZone = true
TriggerEvent('cd_drawtextui:ShowUI', 'show', text)
end
if not inZone and alreadyEnteredZone then
alreadyEnteredZone = false
TriggerEvent('cd_drawtextui:HideUI')
end
Citizen.Wait(wait)
end
end)Is the resource not working as expected?
Last updated
Was this helpful?

