Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function check_hud_func()
- local Gun = getPedWeapon ( gMe )
- if not(Gun) then return end
- if not(fireWeapons[getSlotFromWeapon(Gun)]) then return end
- local w, h = guiGetScreenSize ()
- local x, y, z = getPedTargetEnd ( gMe )
- if not(x) or not(y) or not(z) then return end
- local sx, sy = getScreenFromWorldPosition(x, y, z+0.55)
- local sx2, sy2 = getScreenFromWorldPosition(x, y, z-0.8)
- local sx3, sy3 = getScreenFromWorldPosition(x, y, z)
- if not(sx) or not(sy) then return end
- dxDrawLine(sx, sy-8.9, sx, sy, tocolor(0, 0, 255), 2)
- dxDrawLine(sx2, sy2-8.9, sx2, sy2, tocolor(0, 0, 255), 2)
- dxDrawLine(sx3-22.9, sy3, sx3-14.9, sy3, tocolor(0, 0, 255), 2)
- dxDrawLine(sx3+22.9, sy3, sx3+14.9, sy3, tocolor(0, 0, 255), 2)
- dxDrawLine(sx, sy-8, sx, sy, tocolor(0, 255, 0), 2)
- dxDrawLine(sx2, sy2-8, sx2, sy2, tocolor(0, 255, 0), 2)
- dxDrawLine(sx3-22, sy3, sx3-14, sy3, tocolor(0, 255, 0), 2)
- dxDrawLine(sx3+22, sy3, sx3+14, sy3, tocolor(0, 255, 0), 2)
- end
- addEventHandler("onClientRender", getRootElement(), check_hud_func)
Advertisement
Add Comment
Please, Sign In to add comment