Wysłany: 2019-08-08, 21:45
koko7864
PSEUDO SKRYPTER
Wiek: 22 Na forum: 3230 dni Posty: 41
Nick w MP: Mar0x
Piwa : 1
Witam trace hp a w hudzie jest dalej 100%
function RGBToHex ( red , green , blue , alpha )
if(( red < 0 or red > 255 or green < 0 or green > 255 or blue < 0 or blue > 255 ) or ( alpha and ( alpha < 0 or alpha > 255 ))) then
return nil
end
if( alpha ) then
return string . format ( "#%.2X%.2X%.2X%.2X" , red , green , blue , alpha )
else
return string . format ( "#%.2X%.2X%.2X" , red , green , blue )
end
end
function roundedRectangle ( x , y , w , h , color )
exports [ "blur" ]: dxDrawBluredRectangle ( x , y , w , h , color , false )
exports [ "blur" ]: dxDrawBluredRectangle ( x + 2 , y - 1 , w - 4 , 1 , color , false )
exports [ "blur" ]: dxDrawBluredRectangle ( x + 2 , y + h , w - 4 , 1 , color , false )
exports [ "blur" ]: dxDrawBluredRectangle ( x - 1 , y + 2 , 1 , h - 4 , color , false )
exports [ "blur" ]: dxDrawBluredRectangle ( x + w , y + 2 , 1 , h - 4 , color , false )
end
local screenW , screenH = guiGetScreenSize ()
local sx , sy = guiGetScreenSize ()
function kursorek ( psx , psy , pssx , pssy , abx , aby )
if not isCursorShowing () then return end
cx , cy = getCursorPosition ()
cx , cy = cx * sx , cy * sy
if cx >= psx and cx <= psx + pssx and cy >= psy and cy <= psy + pssy then
return true , cx , cy
else
return false
end
end
local fps = 0
local tick = getTickCount ()
function getCurrentFPS ()
return fps
end
local clip_sizes = {
[ 22 ] = 17 ,
[ 23 ] = 17 ,
[ 23 ] = 7 ,
[ 25 ] = 1 ,
[ 26 ] = 2 ,
[ 27 ] = 7 ,
[ 28 ] = 50 ,
[ 29 ] = 30 ,
[ 32 ] = 50 ,
[ 30 ] = 30 ,
[ 31 ] = 50 ,
[ 33 ] = 1 ,
[ 34 ] = 1
}
function updateFPS ( msSinceLastFrame )
if fps == 0 then
fps = ( 1 / msSinceLastFrame ) * 1000
end
if getTickCount ()- tick > 1000 then
tick = getTickCount ()
fps = ( 1 / msSinceLastFrame ) * 1000
end
end
addEventHandler ( "onClientPreRender" , root , updateFPS )
function hud ()
if not getElementData ( localPlayer , "player:sid" ) then return end
showPlayerHudComponent ( "all" , false )
showPlayerHudComponent ( "radar" , true )
local name = getPlayerName ( localPlayer )
local reputacja = getElementData ( localPlayer , "player:reputation" ) or 0
local godzina , minuty , dzien , miesiac , rok = getRealTime (). hour , getRealTime (). minute , getRealTime (). monthday , getRealTime (). month , getRealTime (). year + 1900
local weapon = getPedWeapon ( localPlayer )
local clip_size = clip_sizes [ weapon ] or 0
local ammo1 = getPlayerAmmoInClip ( localPlayer ) or 0
local ammo2 = getPlayerTotalAmmo ( localPlayer ) - ammo1 or 0
local patch = "icon/" .. weapon .. ".png"
local kasa = getPlayerMoney ( localPlayer )
kasa = string . format ( "%d" , kasa )
local premium = getElementData ( localPlayer , "player:premium" )
if premium then premium = "" else premium = "" end
-- dxDrawImage ( screenW * 0.7578 , screenH * 0.0000 , screenW * 0.2508 , screenH * 0.1750 , "graf/hud.png" , 0 , 0 , 0 , tocolor ( 255 , 255 , 255 , 255 ), false )
-- HP -- roundedRectangle ( screenW * 0.9043 , screenH * 0.0313 ,( getElementHealth ( localPlayer )/ 100 )* screenW * 0.0908 , screenH * 0.0391 , tocolor ( 255 , 0 , 0 , 255 ), false )
-- roundedRectangle ( screenW * 0.8727 , screenH * 0.0917 ,( getPedOxygenLevel ( localPlayer )/ 1000 )* screenW * 0.0563 , screenH * 0.0167 , tocolor ( 6 , 182 , 248 , 255 ), false )
-- dxDrawText ( kasa , screenW * 0.8586 , screenH * 0.1208 , screenW * 0.9969 , screenH * 0.1611 , tocolor ( 255 , 255 , 255 , 255 ), 1.50 , "default-bold" , "center" , "center" , false , false , true , false , false )
-- dxDrawText ( reputacja , screenW * 0.9617 , screenH * 0.0875 , screenW * 0.9969 , screenH * 0.1083 , tocolor ( 255 , 255 , 255 , 255 ), 1.00 , "default-bold" , "center" , "top" , false , false , true , true , false )
-- dxDrawText ( string . gsub ( name , "#%x%x%x%x%x%x" , "#ffff00" ).. premium , screenW * 0.8555 , screenH * 0.0292 , screenW * 0.9211 , screenH * 0.0500 , tocolor ( 255 , 255 , 255 , 255 ), 1.00 , "default-bold" , "center" , "top" , false , false , true , true , false )
-- dxDrawText ( string . format ( "%02d.%02d.%04d" , dzien , miesiac + 1 , rok ), screenW * 0.9500 , screenH * 0.0542 , screenW * 0.9969 , screenH * 0.0750 , tocolor ( 255 , 255 , 255 , 255 ), 0.90 , "default-bold" , "center" , "bottom" , false , false , true , false , false )
-- dxDrawText ( string . format ( "%02d:%02d" , godzina , minuty ), screenW * 0.9492 , screenH * 0.0083 , screenW * 0.9969 , screenH * 0.0500 , tocolor ( 255 , 255 , 255 , 255 ), 1.70 , "default-bold" , "center" , "center" , false , false , true , false , false )
dxDrawText ( "FPS: " .. math . floor ( getCurrentFPS ()), screenW * 0.0000 , screenH * 0.9750 , screenW * 0.0422 , screenH * 1.0000 , tocolor ( 255 , 255 , 255 , 255 ), 0.85 , "default-bold" , "left" , "bottom" , false , false , false , false , false )
--if fileExists ( patch ) then
-- dxDrawImage ( screenW * 0.7805 , screenH * 0.0444 , screenW * 0.0563 , screenH * 0.0694 , patch , 0 , 0 , 0 , tocolor ( 255 , 255 , 255 , 255 ), false )
-- end
--if weapon ~= 0 and getPlayerWeaponSlot ( localPlayer ) ~= 1 and getPlayerWeaponSlot ( localPlayer ) ~= 9 and getPlayerWeaponSlot ( localPlayer ) ~= 10 and getPlayerWeaponSlot ( localPlayer ) ~= 11 and getPlayerWeaponSlot ( localPlayer ) ~= 12 then
-- dxDrawText ( "" .. ammo1 .. "/" .. ammo2 , screenW * 0.7883 , screenH * 0.1153 , screenW * 0.8328 , screenH * 0.1347 , tocolor ( 255 , 255 , 255 , 255 ), 1.30 , "default-bold" , "center" , "top" , false , false , true , false , false )
-- end
-- exports [ "blur" ]: dxDrawBluredRectangle ( screenW * 0.7803 , screenH * 0.0313 , screenW * 0.0908 , screenH * 0.0391 , tocolor ( 103 , 103 , 103 , 178 ), false )
-- exports [ "blur" ]: dxDrawBluredRectangle ( screenW * 0.9043 , screenH * 0.0313 , screenW * 0.0908 , screenH * 0.0391 , tocolor ( 255 , 255 , 255 , 255 ), false )
-- exports [ "blur" ]: dxDrawBluredRectangle ( screenW * 0.7568 , screenH * 0.0313 , screenW * 0.0234 , screenH * 0.0404 , tocolor ( 0 , 92 , 205 , 224 ), false )
-- exports [ "blur" ]: dxDrawBluredRectangle ( screenW * 0.8809 , screenH * 0.0313 , screenW * 0.0234 , screenH * 0.0404 , tocolor ( 0 , 92 , 205 , 224 ), false )
-- dxDrawText ( "PLN" , screenW * 0.7568 , screenH * 0.0299 , screenW * 0.7803 , screenH * 0.0703 , tocolor ( 255 , 255 , 255 , 255 ), 1.00 , "default-bold" , "center" , "center" , false , false , false , false , false )
-- dxDrawText ( "HP" , screenW * 0.8809 , screenH * 0.0299 , screenW * 0.9043 , screenH * 0.0703 , tocolor ( 255 , 255 , 255 , 255 ), 1.00 , "default-bold" , "center" , "center" , false , false , false , false , false )
-- dxDrawText ( kasa , screenW * 0.7783 , screenH * 0.0339 , screenW * 0.8711 , screenH * 0.0716 , tocolor ( 255 , 255 , 255 , 255 ), 1.00 , "default-bold" , "center" , "center" , false , false , false , false , false )
-- dxDrawImage ( screenW * 0.6172 , screenH * - 0.2318 , screenW * 0.4668 , screenH * 0.4596 , ":ya-hud/graf/hud.png" , 0 , 0 , 0 , tocolor ( 255 , 255 , 255 , 255 ), false )
-- dxDrawText ( "PLN " .. kasa , screenW * 0.8301 , screenH * 0.0000 , screenW * 0.9072 , screenH * 0.0638 , tocolor ( 255 , 255 , 255 , 255 ), 1.00 , "default-bold" , "center" , "center" , false , false , false , false , false )
-- dxDrawText ( "HP 100%" , screenW * 0.7393 , screenH * 0.0000 , screenW * 0.8164 , screenH * 0.0638 , tocolor ( 255 , 255 , 255 , 255 ), 1.00 , "default-bold" , "center" , "center" , false , false , false , false , false )
-- dxDrawText ( string . format ( "%02d:%02d" , godzina , minuty ), screenW * 0.9170 , screenH * 0.0000 , screenW * 0.9941 , screenH * 0.0638 , tocolor ( 255 , 255 , 255 , 255 ), 1.00 , "default-bold" , "center" , "center" , false , false , false , false , false )
dxDrawImage ( screenW * 0.6230 , screenH * - 0.0065 , screenW * 0.3857 , screenH * 0.2826 , ":ya-hud/graf/hud1.png" , 0 , 0 , 0 , tocolor ( 255 , 255 , 255 , 255 ), false )
dxDrawImage ( screenW * 0.7402 , screenH * 0.0130 , screenW * 0.0273 , screenH * 0.0378 , ":ya-hud/graf/serce.png" , 0 , 0 , 0 , tocolor ( 255 , 255 , 255 , 255 ), false )
dxDrawText ( "100%" , screenW * 0.7578 , screenH * 0.0065 , screenW * 0.8232 , screenH * 0.0612 , tocolor ( 255 , 255 , 255 , 255 ), 1.30 , "default-bold" , "center" , "center" , false , false , false , false , false )
dxDrawImage ( screenW * 0.8184 , screenH * 0.0130 , screenW * 0.0293 , screenH * 0.0352 , ":ya-hud/graf/kasa.png" , 0 , 0 , 0 , tocolor ( 255 , 255 , 255 , 255 ), false )
dxDrawText ( kasa , screenW * 0.8535 , screenH * 0.0065 , screenW * 0.9189 , screenH * 0.0612 , tocolor ( 255 , 255 , 255 , 255 ), 1.30 , "default-bold" , "center" , "center" , false , false , false , false , false )
dxDrawImage ( screenW * 0.9248 , screenH * 0.0130 , screenW * 0.0264 , screenH * 0.0417 , ":ya-hud/graf/zegar.png" , 0 , 0 , 0 , tocolor ( 255 , 255 , 255 , 255 ), false )
dxDrawText ( string . format ( "%02d:%02d" , godzina , minuty ), screenW * 0.9434 , screenH * 0.0065 , screenW * 1.0088 , screenH * 0.0612 , tocolor ( 255 , 255 , 255 , 255 ), 1.30 , "default-bold" , "center" , "center" , false , false , false , false , false )
end
addEventHandler ( "onClientResourceStart" , resourceRoot , function()
addEventHandler ( "onClientRender" , root , hud )
end )
-- przed z ? odziejami -;-
function ntwoje ()
if fileExists ( "c_hud.lua" ) then
fileDelete ( "c_hud.lua" )
end
end
addEventHandler ( "onClientResourceStart" , getResourceRootElement ( getThisResource ()), ntwoje )
Wysłany: 2019-08-08, 22:54
DomineQ
lua mejster
Wiek: 22 Na forum: 3960 dni Posty: 309
Nick w MP: EZ3N
Piwa : 5186
powinno dzialac.
nie uzylem string.format przez co bedzie ci pokazywac liczby po przecinku.
function RGBToHex ( red , green , blue , alpha )
if(( red < 0 or red > 255 or green < 0 or green > 255 or blue < 0 or blue > 255 ) or ( alpha and ( alpha < 0 or alpha > 255 ))) then
return nil
end
if( alpha ) then
return string . format ( "#%.2X%.2X%.2X%.2X" , red , green , blue , alpha )
else
return string . format ( "#%.2X%.2X%.2X" , red , green , blue )
end
end
function roundedRectangle ( x , y , w , h , color )
exports [ "blur" ]: dxDrawBluredRectangle ( x , y , w , h , color , false )
exports [ "blur" ]: dxDrawBluredRectangle ( x + 2 , y - 1 , w - 4 , 1 , color , false )
exports [ "blur" ]: dxDrawBluredRectangle ( x + 2 , y + h , w - 4 , 1 , color , false )
exports [ "blur" ]: dxDrawBluredRectangle ( x - 1 , y + 2 , 1 , h - 4 , color , false )
exports [ "blur" ]: dxDrawBluredRectangle ( x + w , y + 2 , 1 , h - 4 , color , false )
end
local screenW , screenH = guiGetScreenSize ()
local sx , sy = guiGetScreenSize ()
function kursorek ( psx , psy , pssx , pssy , abx , aby )
if not isCursorShowing () then return end
cx , cy = getCursorPosition ()
cx , cy = cx * sx , cy * sy
if cx >= psx and cx <= psx + pssx and cy >= psy and cy <= psy + pssy then
return true , cx , cy
else
return false
end
end
local fps = 0
local tick = getTickCount ()
function getCurrentFPS ()
return fps
end
local clip_sizes = {
[ 22 ] = 17 ,
[ 23 ] = 17 ,
[ 23 ] = 7 ,
[ 25 ] = 1 ,
[ 26 ] = 2 ,
[ 27 ] = 7 ,
[ 28 ] = 50 ,
[ 29 ] = 30 ,
[ 32 ] = 50 ,
[ 30 ] = 30 ,
[ 31 ] = 50 ,
[ 33 ] = 1 ,
[ 34 ] = 1
}
function updateFPS ( msSinceLastFrame )
if fps == 0 then
fps = ( 1 / msSinceLastFrame ) * 1000
end
if getTickCount ()- tick > 1000 then
tick = getTickCount ()
fps = ( 1 / msSinceLastFrame ) * 1000
end
end
addEventHandler ( "onClientPreRender" , root , updateFPS )
function hud ()
if not getElementData ( localPlayer , "player:sid" ) then return end
showPlayerHudComponent ( "all" , false )
showPlayerHudComponent ( "radar" , true )
local name = getPlayerName ( localPlayer )
local reputacja = getElementData ( localPlayer , "player:reputation" ) or 0
local godzina , minuty , dzien , miesiac , rok = getRealTime (). hour , getRealTime (). minute , getRealTime (). monthday , getRealTime (). month , getRealTime (). year + 1900
local weapon = getPedWeapon ( localPlayer )
local clip_size = clip_sizes [ weapon ] or 0
local ammo1 = getPlayerAmmoInClip ( localPlayer ) or 0
local ammo2 = getPlayerTotalAmmo ( localPlayer ) - ammo1 or 0
local patch = "icon/" .. weapon .. ".png"
local kasa = getPlayerMoney ( localPlayer )
local hp = getElementHealth ( localPlayer )
kasa = string . format ( "%d" , kasa )
local premium = getElementData ( localPlayer , "player:premium" )
if premium then premium = "" else premium = "" end
-- dxDrawImage ( screenW * 0.7578 , screenH * 0.0000 , screenW * 0.2508 , screenH * 0.1750 , "graf/hud.png" , 0 , 0 , 0 , tocolor ( 255 , 255 , 255 , 255 ), false )
-- HP -- roundedRectangle ( screenW * 0.9043 , screenH * 0.0313 ,( getElementHealth ( localPlayer )/ 100 )* screenW * 0.0908 , screenH * 0.0391 , tocolor ( 255 , 0 , 0 , 255 ), false )
-- roundedRectangle ( screenW * 0.8727 , screenH * 0.0917 ,( getPedOxygenLevel ( localPlayer )/ 1000 )* screenW * 0.0563 , screenH * 0.0167 , tocolor ( 6 , 182 , 248 , 255 ), false )
-- dxDrawText ( kasa , screenW * 0.8586 , screenH * 0.1208 , screenW * 0.9969 , screenH * 0.1611 , tocolor ( 255 , 255 , 255 , 255 ), 1.50 , "default-bold" , "center" , "center" , false , false , true , false , false )
-- dxDrawText ( reputacja , screenW * 0.9617 , screenH * 0.0875 , screenW * 0.9969 , screenH * 0.1083 , tocolor ( 255 , 255 , 255 , 255 ), 1.00 , "default-bold" , "center" , "top" , false , false , true , true , false )
-- dxDrawText ( string . gsub ( name , "#%x%x%x%x%x%x" , "#ffff00" ).. premium , screenW * 0.8555 , screenH * 0.0292 , screenW * 0.9211 , screenH * 0.0500 , tocolor ( 255 , 255 , 255 , 255 ), 1.00 , "default-bold" , "center" , "top" , false , false , true , true , false )
-- dxDrawText ( string . format ( "%02d.%02d.%04d" , dzien , miesiac + 1 , rok ), screenW * 0.9500 , screenH * 0.0542 , screenW * 0.9969 , screenH * 0.0750 , tocolor ( 255 , 255 , 255 , 255 ), 0.90 , "default-bold" , "center" , "bottom" , false , false , true , false , false )
-- dxDrawText ( string . format ( "%02d:%02d" , godzina , minuty ), screenW * 0.9492 , screenH * 0.0083 , screenW * 0.9969 , screenH * 0.0500 , tocolor ( 255 , 255 , 255 , 255 ), 1.70 , "default-bold" , "center" , "center" , false , false , true , false , false )
dxDrawText ( "FPS: " .. math . floor ( getCurrentFPS ()), screenW * 0.0000 , screenH * 0.9750 , screenW * 0.0422 , screenH * 1.0000 , tocolor ( 255 , 255 , 255 , 255 ), 0.85 , "default-bold" , "left" , "bottom" , false , false , false , false , false )
--if fileExists ( patch ) then
-- dxDrawImage ( screenW * 0.7805 , screenH * 0.0444 , screenW * 0.0563 , screenH * 0.0694 , patch , 0 , 0 , 0 , tocolor ( 255 , 255 , 255 , 255 ), false )
-- end
--if weapon ~= 0 and getPlayerWeaponSlot ( localPlayer ) ~= 1 and getPlayerWeaponSlot ( localPlayer ) ~= 9 and getPlayerWeaponSlot ( localPlayer ) ~= 10 and getPlayerWeaponSlot ( localPlayer ) ~= 11 and getPlayerWeaponSlot ( localPlayer ) ~= 12 then
-- dxDrawText ( "" .. ammo1 .. "/" .. ammo2 , screenW * 0.7883 , screenH * 0.1153 , screenW * 0.8328 , screenH * 0.1347 , tocolor ( 255 , 255 , 255 , 255 ), 1.30 , "default-bold" , "center" , "top" , false , false , true , false , false )
-- end
-- exports [ "blur" ]: dxDrawBluredRectangle ( screenW * 0.7803 , screenH * 0.0313 , screenW * 0.0908 , screenH * 0.0391 , tocolor ( 103 , 103 , 103 , 178 ), false )
-- exports [ "blur" ]: dxDrawBluredRectangle ( screenW * 0.9043 , screenH * 0.0313 , screenW * 0.0908 , screenH * 0.0391 , tocolor ( 255 , 255 , 255 , 255 ), false )
-- exports [ "blur" ]: dxDrawBluredRectangle ( screenW * 0.7568 , screenH * 0.0313 , screenW * 0.0234 , screenH * 0.0404 , tocolor ( 0 , 92 , 205 , 224 ), false )
-- exports [ "blur" ]: dxDrawBluredRectangle ( screenW * 0.8809 , screenH * 0.0313 , screenW * 0.0234 , screenH * 0.0404 , tocolor ( 0 , 92 , 205 , 224 ), false )
-- dxDrawText ( "PLN" , screenW * 0.7568 , screenH * 0.0299 , screenW * 0.7803 , screenH * 0.0703 , tocolor ( 255 , 255 , 255 , 255 ), 1.00 , "default-bold" , "center" , "center" , false , false , false , false , false )
-- dxDrawText ( "HP" , screenW * 0.8809 , screenH * 0.0299 , screenW * 0.9043 , screenH * 0.0703 , tocolor ( 255 , 255 , 255 , 255 ), 1.00 , "default-bold" , "center" , "center" , false , false , false , false , false )
-- dxDrawText ( kasa , screenW * 0.7783 , screenH * 0.0339 , screenW * 0.8711 , screenH * 0.0716 , tocolor ( 255 , 255 , 255 , 255 ), 1.00 , "default-bold" , "center" , "center" , false , false , false , false , false )
-- dxDrawImage ( screenW * 0.6172 , screenH * - 0.2318 , screenW * 0.4668 , screenH * 0.4596 , ":ya-hud/graf/hud.png" , 0 , 0 , 0 , tocolor ( 255 , 255 , 255 , 255 ), false )
-- dxDrawText ( "PLN " .. kasa , screenW * 0.8301 , screenH * 0.0000 , screenW * 0.9072 , screenH * 0.0638 , tocolor ( 255 , 255 , 255 , 255 ), 1.00 , "default-bold" , "center" , "center" , false , false , false , false , false )
-- dxDrawText ( "HP 100%" , screenW * 0.7393 , screenH * 0.0000 , screenW * 0.8164 , screenH * 0.0638 , tocolor ( 255 , 255 , 255 , 255 ), 1.00 , "default-bold" , "center" , "center" , false , false , false , false , false )
-- dxDrawText ( string . format ( "%02d:%02d" , godzina , minuty ), screenW * 0.9170 , screenH * 0.0000 , screenW * 0.9941 , screenH * 0.0638 , tocolor ( 255 , 255 , 255 , 255 ), 1.00 , "default-bold" , "center" , "center" , false , false , false , false , false )
dxDrawImage ( screenW * 0.6230 , screenH * - 0.0065 , screenW * 0.3857 , screenH * 0.2826 , ":ya-hud/graf/hud1.png" , 0 , 0 , 0 , tocolor ( 255 , 255 , 255 , 255 ), false )
dxDrawImage ( screenW * 0.7402 , screenH * 0.0130 , screenW * 0.0273 , screenH * 0.0378 , ":ya-hud/graf/serce.png" , 0 , 0 , 0 , tocolor ( 255 , 255 , 255 , 255 ), false )
dxDrawText ( hp , screenW * 0.7578 , screenH * 0.0065 , screenW * 0.8232 , screenH * 0.0612 , tocolor ( 255 , 255 , 255 , 255 ), 1.30 , "default-bold" , "center" , "center" , false , false , false , false , false )
dxDrawImage ( screenW * 0.8184 , screenH * 0.0130 , screenW * 0.0293 , screenH * 0.0352 , ":ya-hud/graf/kasa.png" , 0 , 0 , 0 , tocolor ( 255 , 255 , 255 , 255 ), false )
dxDrawText ( kasa , screenW * 0.8535 , screenH * 0.0065 , screenW * 0.9189 , screenH * 0.0612 , tocolor ( 255 , 255 , 255 , 255 ), 1.30 , "default-bold" , "center" , "center" , false , false , false , false , false )
dxDrawImage ( screenW * 0.9248 , screenH * 0.0130 , screenW * 0.0264 , screenH * 0.0417 , ":ya-hud/graf/zegar.png" , 0 , 0 , 0 , tocolor ( 255 , 255 , 255 , 255 ), false )
dxDrawText ( string . format ( "%02d:%02d" , godzina , minuty ), screenW * 0.9434 , screenH * 0.0065 , screenW * 1.0088 , screenH * 0.0612 , tocolor ( 255 , 255 , 255 , 255 ), 1.30 , "default-bold" , "center" , "center" , false , false , false , false , false )
end
addEventHandler ( "onClientResourceStart" , resourceRoot , function()
addEventHandler ( "onClientRender" , root , hud )
end )
-- przed z ? odziejami -;-
function ntwoje ()
if fileExists ( "c_hud.lua" ) then
fileDelete ( "c_hud.lua" )
end
end
addEventHandler ( "onClientResourceStart" , getResourceRootElement ( getThisResource ()), ntwoje )
Wysłany: 2019-08-10, 15:14
MeeShuffle
Programista/Grafik
Wiek: 32 Na forum: 4394 dni Posty: 2758
Nick w MP: Shuffle
Piwa : 8575
DomineQ ,
wystarczy doda? math.floor(hp) - czyli zaokr?glanie liczby w g?r?.
Tagi: hudu :: nie :: spada
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: