Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- createStatusGUI()
- local health = getElementHealth(localPlayer)
- local armor = getPedArmor(localPlayer)
- local statusString = string.format("Hunger :%f || Armor :%f", health, armor)
- dxDrawRectangle(5, 736, 507, 14, tocolor(0, 0, 0, 135), true)
- dxDrawText(statusString, 6, 737, 513, 751, tocolor(0, 0, 0, 255), 1.00, "default", "left", "top", false, false, true, false, false)
- dxDrawText(statusString, 6, 735, 513, 749, tocolor(0, 0, 0, 255), 1.00, "default", "left", "top", false, false, true, false, false)
- dxDrawText(statusString, 4, 737, 511, 751, tocolor(0, 0, 0, 255), 1.00, "default", "left", "top", false, false, true, false, false)
- dxDrawText(statusString, 4, 735, 511, 749, tocolor(0, 0, 0, 255), 1.00, "default", "left", "top", false, false, true, false, false)
- dxDrawText(statusString, 5, 736, 512, 750, tocolor(254, 3, 3, 255), 1.00, "default", "left", "top", false, false, true, false, false)
- end
- addEventHandler("onResourceStart", resourceRoot,createStatusGUI)
- addEventHandler("onClientRender", root, createStatusGUI)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement