Advertisement
Guest User

Untitled

a guest
Nov 26th, 2014
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.03 KB | None | 0 0
  1. createStatusGUI()
  2. local health = getElementHealth(localPlayer)
  3. local armor = getPedArmor(localPlayer)
  4. local statusString = string.format("Hunger :%f || Armor :%f", health, armor)
  5.  
  6. dxDrawRectangle(5, 736, 507, 14, tocolor(0, 0, 0, 135), true)
  7. dxDrawText(statusString, 6, 737, 513, 751, tocolor(0, 0, 0, 255), 1.00, "default", "left", "top", false, false, true, false, false)
  8. dxDrawText(statusString, 6, 735, 513, 749, tocolor(0, 0, 0, 255), 1.00, "default", "left", "top", false, false, true, false, false)
  9. dxDrawText(statusString, 4, 737, 511, 751, tocolor(0, 0, 0, 255), 1.00, "default", "left", "top", false, false, true, false, false)
  10. dxDrawText(statusString, 4, 735, 511, 749, tocolor(0, 0, 0, 255), 1.00, "default", "left", "top", false, false, true, false, false)
  11. dxDrawText(statusString, 5, 736, 512, 750, tocolor(254, 3, 3, 255), 1.00, "default", "left", "top", false, false, true, false, false)
  12. end
  13. addEventHandler("onResourceStart", resourceRoot,createStatusGUI)
  14. addEventHandler("onClientRender", root, createStatusGUI)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement