How to display a text on screen like a hud

i want to display a text for example:

display the text: EXP:

i am using the esx_status script and it displays a thirst and hunger bar…

so is there a command to display some text on screen
i will put it somewhere that will update every seconds so the text will always stays on screen like the hunger bar…

i found it i will write it here to help other people:

-- first you use a function to call the event that displays the message:
	

	Displaymikehud()

-- then you make the function to display the text:


function Displaymikehud()

 SetTextComponentFormat("STRING")
    
    AddTextComponentString(exp)
    DisplayHelpTextFromStringLabel(0, 0, 1, -1)


end

``
1 Like