require 'lib.moonloader'
local memory = require 'memory'
local font = nil
function main()
while not isSampAvailable() do wait(100) end
font = renderCreateFont("Arial", 14, 0)
while true do
wait(0)
if isPlayerPlaying(PLAYER_HANDLE) then
local weapon = getCurrentCharWeapon(PLAYER_PED)
if weapon > 0 then
local totalAmmo = getAmmoInCharWeapon(PLAYER_PED, weapon)
local ammoInClip = getAmmoInClip()
local text = string.format("Остаток патрон: %d | Всего патронов: %d", ammoInClip, totalAmmo)
renderFontDrawText(font, text, 1200, 1000, 0xFFFFFFFF)
end...