- 99
- 3
Почему не работает информер?
script_name("[informer]")
script_author("[MOL]")
script_version("v0.1")
function main()
while not isSampAvailable() do wait(100) end
local font = renderCreateFont("Comic Sans MS", 8, 12)
while true do
wait(0)
if sampIsLocalPlayerSpawned() then
local _, id = sampGetPlayerIdByCharHandle(PLAYER_PED)
local info1 = "HEALTH: {FF8C00}" .. getCharHealth(PLAYER_PED) .. "{FFFFFF} | ARMOUR: {FF8C00}" .. getCharArmour(PLAYER_PED) .. "{FFFFFF} | WEAPON: {FF8C00}" .. weapons.get_name(getCurrentCharWeapon(PLAYER_PED)) .. "{FFFFFF} | ANIMATION: {FF8C00}" .. sampGetPlayerAnimationId(id), -1)
local info2 = "" .. info1 .. "SPECIAL ACTION: {FF8C00}" .. sampGetPlayerSpecialAction(id) .. "{FFFFFF} | INTERIOR: {FF8C00}" .. getActiveInterior(), -1)
renderFontDrawText(font, info2, 849, 849, 0xFFFFA500)
end
end
end
script_name("[informer]")
script_author("[MOL]")
script_version("v0.1")
function main()
while not isSampAvailable() do wait(100) end
local font = renderCreateFont("Comic Sans MS", 8, 12)
while true do
wait(0)
if sampIsLocalPlayerSpawned() then
local _, id = sampGetPlayerIdByCharHandle(PLAYER_PED)
local info1 = "HEALTH: {FF8C00}" .. getCharHealth(PLAYER_PED) .. "{FFFFFF} | ARMOUR: {FF8C00}" .. getCharArmour(PLAYER_PED) .. "{FFFFFF} | WEAPON: {FF8C00}" .. weapons.get_name(getCurrentCharWeapon(PLAYER_PED)) .. "{FFFFFF} | ANIMATION: {FF8C00}" .. sampGetPlayerAnimationId(id), -1)
local info2 = "" .. info1 .. "SPECIAL ACTION: {FF8C00}" .. sampGetPlayerSpecialAction(id) .. "{FFFFFF} | INTERIOR: {FF8C00}" .. getActiveInterior(), -1)
renderFontDrawText(font, info2, 849, 849, 0xFFFFA500)
end
end
end