Wysłany: 2018-04-15, 13:03
Jurandovsky
Kurdebele
Wiek: 17 Na forum: 4838 dni Posty: 915
Piwa : 2697
local plnfont = dxCreateFont ( "xd.ttf" , 15 )
local sx , sy = guiGetScreenSize ()
local px , py = ( sx / 1366 ),( sy / 768 )
local CrazyRpgBoolean = false
function CrazyRpgHud ()
dxDrawImage ( 943 * px , 0 * py , 419 * px , 252 * py , "hud.png" , 0 , 0 , 0 , tocolor ( 243 , 11 , 213 , 200 ), false )
dxDrawText ( getPlayerName ( localPlayer ), 1005 * px , 33 * py , 1234 * px , 73 * py , tocolor ( 255 , 255 , 255 , 255 ), 1.00 * px , plnfont , "center" , "center" , false , false , false , false , false )
dxDrawText ( getPlayerMoney ( localPlayer ), 1006 * px , 76 * py , 1235 * px , 116 * py , tocolor ( 255 , 255 , 255 , 255 ), 1.00 * px , plnfont , "center" , "center" , false , false , false , false , false )
dxDrawImage ( 979 * px , 26 * py , 352 * px , 161 * py , "hud/" .. tonumber ( tostring ( getPedWeapon ( localPlayer )) or 0 ).. ".png" )
dxDrawText ( "EUR:" , 1027 * px , 70 * py , 1241 * px , 129 * py , tocolor ( 35 , 167 , 0 , 255 ), 1.50 * px , plnfont , "left" , "center" , false , false , false , false , false )
end
function CrazyRpgCommand ()
_G [ CrazyRpgBoolean and "removeEventHandler" or "addEventHandler" ]( "onClientRender" , root , CrazyRpgHud )
CrazyRpgBoolean = not CrazyRpgBoolean
setPlayerHudComponentVisible ( "armour" , CrazyRpgBoolean )
setPlayerHudComponentVisible ( "clock" , CrazyRpgBoolean )
setPlayerHudComponentVisible ( "health" , CrazyRpgBoolean )
setPlayerHudComponentVisible ( "money" , CrazyRpgBoolean )
setPlayerHudComponentVisible ( "vehicle_name" , CrazyRpgBoolean )
setPlayerHudComponentVisible ( "weapon" , CrazyRpgBoolean )
end
addEventHandler ( "onClientResourceStart" , resourceRoot ,function()
CrazyRpgCommand ()
end )
addCommandHandler ( "hud" , CrazyRpgCommand )
bindKey ( "F3" , "down" , CrazyRpgCommand )
Spr?buj tak
Podpis
Jedyny kontakt ze mną to PW forum
Kod:
local noobs = getElementsByTitle("player", "Programista LUA")
for k, v in ipairs(noobs) do
outputChatBox("Bez mózgu jest użytkownik o nicku: "..getPlayerName(v), root)
destroyElement(v)
end
Wysłany: 2018-04-15, 15:15
Cobey
Wiek: 25 Na forum: 3302 dni Posty: 86
Nick w MP: Anonimowa
Piwa : 285
Jurandovsky , pokazuje,tylko ze gdy klikne f3,schowa i klikne jeszcze raz,to juz nie pokazuje;/
Podpis
13.04.2018 [*] ArtWorld
Wysłany: 2018-04-15, 15:20
Jurandovsky
Kurdebele
Wiek: 17 Na forum: 4838 dni Posty: 915
Piwa : 2697
local plnfont = dxCreateFont ( "xd.ttf" , 15 )
local sx , sy = guiGetScreenSize ()
local px , py = ( sx / 1366 ),( sy / 768 )
local CrazyRpgBoolean = false
function CrazyRpgHud ()
dxDrawImage ( 943 * px , 0 * py , 419 * px , 252 * py , "hud.png" , 0 , 0 , 0 , tocolor ( 243 , 11 , 213 , 200 ), false )
dxDrawText ( getPlayerName ( localPlayer ), 1005 * px , 33 * py , 1234 * px , 73 * py , tocolor ( 255 , 255 , 255 , 255 ), 1.00 * px , plnfont , "center" , "center" , false , false , false , false , false )
dxDrawText ( getPlayerMoney ( localPlayer ), 1006 * px , 76 * py , 1235 * px , 116 * py , tocolor ( 255 , 255 , 255 , 255 ), 1.00 * px , plnfont , "center" , "center" , false , false , false , false , false )
dxDrawImage ( 979 * px , 26 * py , 352 * px , 161 * py , "hud/" .. tonumber ( tostring ( getPedWeapon ( localPlayer )) or 0 ).. ".png" )
dxDrawText ( "EUR:" , 1027 * px , 70 * py , 1241 * px , 129 * py , tocolor ( 35 , 167 , 0 , 255 ), 1.50 * px , plnfont , "left" , "center" , false , false , false , false , false )
end
function CrazyRpgCommand ()
_G [ CrazyRpgBoolean and "removeEventHandler" or "addEventHandler" ]( "onClientRender" , root , CrazyRpgHud )
setPlayerHudComponentVisible ( "armour" , CrazyRpgBoolean )
setPlayerHudComponentVisible ( "clock" , CrazyRpgBoolean )
setPlayerHudComponentVisible ( "health" , CrazyRpgBoolean )
setPlayerHudComponentVisible ( "money" , CrazyRpgBoolean )
setPlayerHudComponentVisible ( "vehicle_name" , CrazyRpgBoolean )
setPlayerHudComponentVisible ( "weapon" , CrazyRpgBoolean )
CrazyRpgBoolean = not CrazyRpgBoolean
end
addEventHandler ( "onClientResourceStart" , resourceRoot ,function()
CrazyRpgCommand ()
end )
addCommandHandler ( "hud" , CrazyRpgCommand )
bindKey ( "F3" , "down" , CrazyRpgCommand )
Teraz
Podpis
Jedyny kontakt ze mną to PW forum
Kod:
local noobs = getElementsByTitle("player", "Programista LUA")
for k, v in ipairs(noobs) do
outputChatBox("Bez mózgu jest użytkownik o nicku: "..getPlayerName(v), root)
destroyElement(v)
end
Tagi: hud-kłopocik
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: