Advertisement
Guest User

custom

a guest
Feb 10th, 2016
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.40 KB | None | 0 0
  1. local color1 = rgb(255, 255, 255)
  2. local color2 = rgb(255, 0, 0)
  3.  
  4. function onDrawCustomHud(res_x, res_y)
  5.     if player.isAlive() then
  6.         -- If the current gun is not ready to fire, draw an indicator around the crosshair
  7.         if not currentWeapon.isReadyToFire() then
  8.             local color = currentWeapon.isReloaded() and color2 or color1
  9.             drawText("-        -", color, res_x / 2, res_y / 2, 1, 1.5)
  10.         end
  11.     end
  12. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement