Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local color1 = rgb(255, 255, 255)
- local color2 = rgb(255, 0, 0)
- function onDrawCustomHud(res_x, res_y)
- if player.isAlive() then
- -- If the current gun is not ready to fire, draw an indicator around the crosshair
- if not currentWeapon.isReadyToFire() then
- local color = currentWeapon.isReloaded() and color2 or color1
- drawText("- -", color, res_x / 2, res_y / 2, 1, 1.5)
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement