Wysłany: 2018-04-15, 08:51
Cobey
Wiek: 25 Na forum: 3302 dni Posty: 86
Nick w MP: Anonimowa
Piwa : 285
Mam k?opot z hudem,aczkolwiek nie pokazuje mi hudu ani nic.
setPlayerHudComponentVisible ( "ammo" , false )
setPlayerHudComponentVisible ( "armour" , false )
setPlayerHudComponentVisible ( "clock" , false )
setPlayerHudComponentVisible ( "health" , false )
setPlayerHudComponentVisible ( "money" , false )
setPlayerHudComponentVisible ( "vehicle_name" , false )
setPlayerHudComponentVisible ( "weapon" , false )
local plnfont = dxCreateFont ( "xd.ttf" , 15 )
local sx , sy = guiGetScreenSize ()
local px , py = ( sx / 1366 ),( sy / 768 )
addEventHandler ( "onClientRender" , root ,
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/" .. tostring ( getPedWeapon ( localPlayer )).. ".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 ()
if CrazyRpgHudBoolean == false then
setPlayerHudComponentVisible ( "armour" , false )
setPlayerHudComponentVisible ( "clock" , false )
setPlayerHudComponentVisible ( "health" , false )
setPlayerHudComponentVisible ( "money" , false )
setPlayerHudComponentVisible ( "vehicle_name" , false )
setPlayerHudComponentVisible ( "weapon" , false )
addEventHandler ( "onClientRender" , root , CrazyRpgHud )
CrazyRpgBoolean = true
else
setPlayerHudComponentVisible ( "armour" , true )
setPlayerHudComponentVisible ( "clock" , true )
setPlayerHudComponentVisible ( "health" , true )
setPlayerHudComponentVisible ( "money" , true )
setPlayerHudComponentVisible ( "vehicle_name" , true )
setPlayerHudComponentVisible ( "weapon" , true )
removeEventHandler ( "onClientRender" , root , CrazyRpgHud )
CrazyRpgBoolean = false
end
end
addCommandHandler ( "f3" , CrazyRpgCommand , false )
B??d w db3:
ERROR: Loading script failed: crpg-hud.lua:15: '(' expected near 'CrazyRpgHud'
Linijka 15:
function CrazyRpgHud()
Podpis
13.04.2018 [*] ArtWorld
Wysłany: 2018-04-15, 08:54
Qwertick
Coming soon...
Wiek: 23 Na forum: 3577 dni Posty: 472
Nick w MP: Qwertick
Piwa : 2726
addEventHandler ( "onClientRender" , root , function()
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/" .. tostring ( getPedWeapon ( localPlayer )).. ".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
)
Podpis
Kontakt
Discord: Qwertick#1210
Wysłany: 2018-04-15, 08:56
Cobey
Wiek: 25 Na forum: 3302 dni Posty: 86
Nick w MP: Anonimowa
Piwa : 285
Wercio. , tylko ?e zobacz kod poni?ej,musi mie? nazwan? funkcje,inaczej chowanie hudu nie zadziala...
Podpis
13.04.2018 [*] ArtWorld
Wysłany: 2018-04-15, 08:58
Kalizman
Wiek: 23 Na forum: 3652 dni Posty: 1394
Piwa : 4619
setPlayerHudComponentVisible ( "ammo" , false )
setPlayerHudComponentVisible ( "armour" , false )
setPlayerHudComponentVisible ( "clock" , false )
setPlayerHudComponentVisible ( "health" , false )
setPlayerHudComponentVisible ( "money" , false )
setPlayerHudComponentVisible ( "vehicle_name" , false )
setPlayerHudComponentVisible ( "weapon" , false )
local plnfont = dxCreateFont ( "xd.ttf" , 15 )
local sx , sy = guiGetScreenSize ()
local px , py = ( sx / 1366 ),( sy / 768 )
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/" .. tostring ( getPedWeapon ( localPlayer )).. ".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 ()
if CrazyRpgHudBoolean == false then
setPlayerHudComponentVisible ( "armour" , false )
setPlayerHudComponentVisible ( "clock" , false )
setPlayerHudComponentVisible ( "health" , false )
setPlayerHudComponentVisible ( "money" , false )
setPlayerHudComponentVisible ( "vehicle_name" , false )
setPlayerHudComponentVisible ( "weapon" , false )
addEventHandler ( "onClientRender" , root , CrazyRpgHud )
CrazyRpgBoolean = true
else
setPlayerHudComponentVisible ( "armour" , true )
setPlayerHudComponentVisible ( "clock" , true )
setPlayerHudComponentVisible ( "health" , true )
setPlayerHudComponentVisible ( "money" , true )
setPlayerHudComponentVisible ( "vehicle_name" , true )
setPlayerHudComponentVisible ( "weapon" , true )
removeEventHandler ( "onClientRender" , root , CrazyRpgHud )
CrazyRpgBoolean = false
end
end
addCommandHandler ( "f3" , CrazyRpgCommand , false )
Wysłany: 2018-04-15, 09:02
Cobey
Wiek: 25 Na forum: 3302 dni Posty: 86
Nick w MP: Anonimowa
Piwa : 285
Kalizman , Teraz nie pokazuje b??d?w i hudu;-;
klikam to f3 i nic
Podpis
13.04.2018 [*] ArtWorld
Wysłany: 2018-04-15, 09:46
TeeNekk
Cienzaruwka :v
Wiek: 23 Na forum: 3210 dni Posty: 264
Nick w MP: TeeNekk.
Piwa : 919
setPlayerHudComponentVisible ( "ammo" , false )
setPlayerHudComponentVisible ( "armour" , false )
setPlayerHudComponentVisible ( "clock" , false )
setPlayerHudComponentVisible ( "health" , false )
setPlayerHudComponentVisible ( "money" , false )
setPlayerHudComponentVisible ( "vehicle_name" , false )
setPlayerHudComponentVisible ( "weapon" , false )
local plnfont = dxCreateFont ( "xd.ttf" , 15 )
local sx , sy = guiGetScreenSize ()
local px , py = ( sx / 1366 ),( sy / 768 )
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/" .. tostring ( getPedWeapon ( localPlayer )).. ".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
CrazyRpgBoolean = false
function CrazyRpgCommand ()
if CrazyRpgHudBoolean == false then
setPlayerHudComponentVisible ( "armour" , false )
setPlayerHudComponentVisible ( "clock" , false )
setPlayerHudComponentVisible ( "health" , false )
setPlayerHudComponentVisible ( "money" , false )
setPlayerHudComponentVisible ( "vehicle_name" , false )
setPlayerHudComponentVisible ( "weapon" , false )
addEventHandler ( "onClientRender" , root , CrazyRpgHud )
CrazyRpgBoolean = true
else
setPlayerHudComponentVisible ( "armour" , true )
setPlayerHudComponentVisible ( "clock" , true )
setPlayerHudComponentVisible ( "health" , true )
setPlayerHudComponentVisible ( "money" , true )
setPlayerHudComponentVisible ( "vehicle_name" , true )
setPlayerHudComponentVisible ( "weapon" , true )
removeEventHandler ( "onClientRender" , root , CrazyRpgHud )
CrazyRpgBoolean = false
end
end
addCommandHandler ( "hud" , CrazyRpgCommand , false )
bindKey ( "F3" , "down" , "hud" )
dwa, pewnie nie chcia? ci si? odpali?, bo nie mia?a? bind'a pod f3 a komend?
Podpis
Pomogłem Ci
[you]
? Może zostawiłbyś za to piwko, lub respekt? Dzięki!
Mój projekt:
?
Wysłany: 2018-04-15, 10:08
Cobey
Wiek: 25 Na forum: 3302 dni Posty: 86
Nick w MP: Anonimowa
Piwa : 285
TeeNekk , Zmieni?am na komende wczesniej i tez nie dzialalo
Podpis
13.04.2018 [*] ArtWorld
Wysłany: 2018-04-15, 10:11
TeeNekk
Cienzaruwka :v
Wiek: 23 Na forum: 3210 dni Posty: 264
Nick w MP: TeeNekk.
Piwa : 919
"Cobey" napisał/a :TeeNekk , Zmieni?am na komende wczesniej i tez nie dzialalo
tylko, ?e tu jest bind... Kt?rego nie mia?a?...
Podpis
Pomogłem Ci
[you]
? Może zostawiłbyś za to piwko, lub respekt? Dzięki!
Mój projekt:
?
Wysłany: 2018-04-15, 10:15
Cobey
Wiek: 25 Na forum: 3302 dni Posty: 86
Nick w MP: Anonimowa
Piwa : 285
TeeNekk , aa rozumiem,TeeNekk , Dalej nie wy?wietla tego hudu;x
Podpis
13.04.2018 [*] ArtWorld
Wysłany: 2018-04-15, 10:31
TeeNekk
Cienzaruwka :v
Wiek: 23 Na forum: 3210 dni Posty: 264
Nick w MP: TeeNekk.
Piwa : 919
debugscript 3?
Podpis
Pomogłem Ci
[you]
? Może zostawiłbyś za to piwko, lub respekt? Dzięki!
Mój projekt:
?
Wysłany: 2018-04-15, 10:39
Cobey
Wiek: 25 Na forum: 3302 dni Posty: 86
Nick w MP: Anonimowa
Piwa : 285
TeeNekk , Brak
Podpis
13.04.2018 [*] ArtWorld
Wysłany: 2018-04-15, 10:59
TeeNekk
Cienzaruwka :v
Wiek: 23 Na forum: 3210 dni Posty: 264
Nick w MP: TeeNekk.
Piwa : 919
setPlayerHudComponentVisible ( "ammo" , false )
setPlayerHudComponentVisible ( "armour" , false )
setPlayerHudComponentVisible ( "clock" , false )
setPlayerHudComponentVisible ( "health" , false )
setPlayerHudComponentVisible ( "money" , false )
setPlayerHudComponentVisible ( "vehicle_name" , false )
setPlayerHudComponentVisible ( "weapon" , false )
local plnfont = dxCreateFont ( "xd.ttf" , 15 )
local sx , sy = guiGetScreenSize ()
local px , py = ( sx / 1366 ),( sy / 768 )
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/" .. tostring ( getPedWeapon ( localPlayer )).. ".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
CrazyRpgBoolean = false
function CrazyRpgCommand ()
if CrazyRpgHudBoolean == false then
setPlayerHudComponentVisible ( "armour" , false )
setPlayerHudComponentVisible ( "clock" , false )
setPlayerHudComponentVisible ( "health" , false )
setPlayerHudComponentVisible ( "money" , false )
setPlayerHudComponentVisible ( "vehicle_name" , false )
setPlayerHudComponentVisible ( "weapon" , false )
addEventHandler ( "onClientRender" , root , CrazyRpgHud )
CrazyRpgBoolean = true
else
setPlayerHudComponentVisible ( "armour" , true )
setPlayerHudComponentVisible ( "clock" , true )
setPlayerHudComponentVisible ( "health" , true )
setPlayerHudComponentVisible ( "money" , true )
setPlayerHudComponentVisible ( "vehicle_name" , true )
setPlayerHudComponentVisible ( "weapon" , true )
removeEventHandler ( "onClientRender" , root , CrazyRpgHud )
CrazyRpgBoolean = false
end
end
addEventHandler ( "onClientResourceStart" , resourceRoot ,function()
CrazyRpgCommand ()
end )
addCommandHandler ( "hud" , CrazyRpgCommand )
bindKey ( "F3" , "down" , "hud" )
Podpis
Pomogłem Ci
[you]
? Może zostawiłbyś za to piwko, lub respekt? Dzięki!
Mój projekt:
?
Wysłany: 2018-04-15, 11:21
Mezo.
Mod-Team
Wiek: 24 Na forum: 3211 dni Posty: 548
Nick w MP: Mezo
Piwa : 6070
Dalej jest b??d?
Podpis
- Na forum pomagam na miarę swoich możliwości, oraz bezpłatnie.
- Jeżeli potrzebujesz pomocy, pisz do mnie w prywatnej wiadomości, pomoc uzyskasz szybciej.
Współpraca -
[email protected]
Użytkownik - 19.08.2017
GTAO MEMBER - 29.03.2019
Support-Team - 03.02.2019 - 07.05.2019
Moderator - 07.05.2019 - 02.08.2020
Mod-Team - 02.08.2020 - 25.03.2022
Więcej szczegółów
Wystawiono 1 piw(a):VaXo
Wysłany: 2018-04-15, 11:31
Cobey
Wiek: 25 Na forum: 3302 dni Posty: 86
Nick w MP: Anonimowa
Piwa : 285
Magneticy , Dalej.
TeeNekk , dalej nie wyswietla;x
brak bledow w db3
Podpis
13.04.2018 [*] ArtWorld
Wysłany: 2018-04-15, 12:09
TeeNekk
Cienzaruwka :v
Wiek: 23 Na forum: 3210 dni Posty: 264
Nick w MP: TeeNekk.
Piwa : 919
local plnfont = dxCreateFont ( "xd.ttf" , 15 )
local sx , sy = guiGetScreenSize ()
local px , py = ( sx / 1366 ),( sy / 768 )
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/" .. tostring ( getPedWeapon ( localPlayer )).. ".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
CrazyRpgBoolean = false
addEventHandler ( "onClientResourceStart" , resourceRoot ,function()
setPlayerHudComponentVisible ( "armour" , false )
setPlayerHudComponentVisible ( "clock" , false )
setPlayerHudComponentVisible ( "health" , false )
setPlayerHudComponentVisible ( "money" , false )
setPlayerHudComponentVisible ( "vehicle_name" , false )
setPlayerHudComponentVisible ( "weapon" , false )
addEventHandler ( "onClientRender" , root , CrazyRpgHud )
CrazyRpgBoolean = true
end )
function CrazyRpgCommand ()
if CrazyRpgHudBoolean == false then
setPlayerHudComponentVisible ( "armour" , false )
setPlayerHudComponentVisible ( "clock" , false )
setPlayerHudComponentVisible ( "health" , false )
setPlayerHudComponentVisible ( "money" , false )
setPlayerHudComponentVisible ( "vehicle_name" , false )
setPlayerHudComponentVisible ( "weapon" , false )
addEventHandler ( "onClientRender" , root , CrazyRpgHud )
CrazyRpgBoolean = true
else
setPlayerHudComponentVisible ( "armour" , true )
setPlayerHudComponentVisible ( "clock" , true )
setPlayerHudComponentVisible ( "health" , true )
setPlayerHudComponentVisible ( "money" , true )
setPlayerHudComponentVisible ( "vehicle_name" , true )
setPlayerHudComponentVisible ( "weapon" , true )
removeEventHandler ( "onClientRender" , root , CrazyRpgHud )
CrazyRpgBoolean = false
end
end
addCommandHandler ( "hud" , CrazyRpgCommand )
bindKey ( "F3" , "down" , "hud" )
Podpis
Pomogłem Ci
[you]
? Może zostawiłbyś za to piwko, lub respekt? Dzięki!
Mój projekt:
?
Tagi: hud-kłopocik
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: