Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.

Wysłany: 2015-05-20, 19:28


THEGizmo

Modeler/Uczeń Lua






Wiek: 27
Na forum: 4141 dni
Posty: 255
Nick w MP: THEGizmo

Piwa: 3072

Respekt: 200
Respekt: 200Respekt: 200

Witam mam taki o to problem bo nie wiem jak zrobi? z?by dxDrawText lub dxDrawRectangle si? chowa? jak np: radar i chat przez komend? .

local sw,sh guiGetScreenSize()

addEventHandler("onClientRender"root, function()
    if isPlayerMapVisible() then return end
    showPlayerHudComponent("money"false)
    local kasa string.format("%08d"getPlayerMoney(getLocalPlayer()))
    dxDrawText("$ "..kasa..""1115/1440*sw200/900*sh1340/1440*sw230/900*shtocolor(5890255), 1.60"pricedown""left""top"falsefalsefalsefalsefalse)
end)


jak mam to zrobi? za pomoc :piwo:

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-05-20, 19:36


Loop

Inspektor






Wiek: 27
Na forum: 4289 dni
Posty: 311
Nick w MP: Inspektor

Piwa: 201

Respekt: 130
Respekt: 130


local sw,sh guiGetScreenSize()
function radar()
    if isPlayerMapVisible() then return end
    showPlayerHudComponent("money"false)
    local kasa string.format("%08d"getPlayerMoney(getLocalPlayer()))
    dxDrawText("$ "..kasa..""1115/1440*sw200/900*sh1340/1440*sw230/900*shtocolor(5890255), 1.60"pricedown""left""top"falsefalsefalsefalsefalse)
end)


addCommandHandler("g", function()
remoweEventHandler("onClientRender"rootradar)
end)

-- edit
-- ?eby w??czyto
addCommandHandler("o", function()
addEventHandler("onClientRender"rootradar)
end)


Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-05-20, 19:50


THEGizmo

Modeler/Uczeń Lua






Wiek: 27
Na forum: 4141 dni
Posty: 255
Nick w MP: THEGizmo

Piwa: 3072

Respekt: 200
Respekt: 200Respekt: 200

Niestety wyskakuje mi b??d :(

Podpis
Modeler Corporation Sp. Z.O.O

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-05-20, 19:50


Loop

Inspektor






Wiek: 27
Na forum: 4289 dni
Posty: 311
Nick w MP: Inspektor

Piwa: 201

Respekt: 130
Respekt: 130

jaki?

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-05-20, 19:54


THEGizmo

Modeler/Uczeń Lua






Wiek: 27
Na forum: 4141 dni
Posty: 255
Nick w MP: THEGizmo

Piwa: 3072

Respekt: 200
Respekt: 200Respekt: 200

ERROR: Loading script failed: Hud\hud.lua:8: unexpected symbol near ")"

Podpis
Modeler Corporation Sp. Z.O.O

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-05-20, 19:56


Loop

Inspektor






Wiek: 27
Na forum: 4289 dni
Posty: 311
Nick w MP: Inspektor

Piwa: 201

Respekt: 130
Respekt: 130

musisz poprawi? ) i moze endy bo ja nie sprawdzalem tego

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-05-20, 20:09


TheTroll

Pan Majster






Wiek: 38
Na forum: 4764 dni
Posty: 219
Nick w MP: TheTroll

Piwa: 1114

Respekt: 120
Respekt: 120


local sw,sh guiGetScreenSize()
function radar()
    if isPlayerMapVisible() then return end
    showPlayerHudComponent("money"false)
    local kasa string.format("%08d"getPlayerMoney(getLocalPlayer()))
    dxDrawText("$ "..kasa..""1115/1440*sw200/900*sh1340/1440*sw230/900*shtocolor(5890255), 1.60"pricedown""left""top"falsefalsefalsefalsefalse)
end
end


addCommandHandler("g", function()
remoweEventHandler("onClientRender"rootradar)
end)

-- edit
-- ?eby w??czyto
addCommandHandler("o", function()
addEventHandler("onClientRender"rootradar)
end)


Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-05-20, 20:11


Loop

Inspektor






Wiek: 27
Na forum: 4289 dni
Posty: 311
Nick w MP: Inspektor

Piwa: 201

Respekt: 130
Respekt: 130

TheTroll co? zmieni?e??

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-05-20, 20:13


THEGizmo

Modeler/Uczeń Lua






Wiek: 27
Na forum: 4141 dni
Posty: 255
Nick w MP: THEGizmo

Piwa: 3072

Respekt: 200
Respekt: 200Respekt: 200

TheTroll nic to nie da?o
ERROR: Loading script failed: Hud\hud.lua:8: "<eof>" expected near "end"

Podpis
Modeler Corporation Sp. Z.O.O

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-05-20, 20:17


Loop

Inspektor






Wiek: 27
Na forum: 4289 dni
Posty: 311
Nick w MP: Inspektor

Piwa: 201

Respekt: 130
Respekt: 130


local sw,sh guiGetScreenSize()
function radar()
    if isPlayerMapVisible() then return end
    showPlayerHudComponent("money"false)
    local kasa string.format("%08d"getPlayerMoney(getLocalPlayer()))
    dxDrawText("$ "..kasa..""1115/1440*sw200/900*sh1340/1440*sw230/900*shtocolor(5890255), 1.60"pricedown""left""top"falsefalsefalsefalsefalse)
    end



addCommandHandler("g", function()
remoweEventHandler("onClientRender"rootradar)
end)

-- edit
-- ?eby w??czyto
addCommandHandler("o", function()
addEventHandler("onClientRender"rootradar)
end)


Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-05-20, 20:20


TheTroll

Pan Majster






Wiek: 38
Na forum: 4764 dni
Posty: 219
Nick w MP: TheTroll

Piwa: 1114

Respekt: 120
Respekt: 120

THEGizmo, Oj sorki nie zauwa?y?em jednego endu. Kod kt?ry poda? Loop powinien dzia?a? :)

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-05-20, 20:23


THEGizmo

Modeler/Uczeń Lua






Wiek: 27
Na forum: 4141 dni
Posty: 255
Nick w MP: THEGizmo

Piwa: 3072

Respekt: 200
Respekt: 200Respekt: 200

Loop dzia?a lecz jak wpisze /o ... a chce z?by by?o jak po prostu Hud ze chowa?o a nie ze pokazuje za pomoc? /o a jak wpisze /g jest b??d
ERROR: Hud\hud.lua:12: attempt to call global "remoweEventHandler"(a nil value)

Podpis
Modeler Corporation Sp. Z.O.O

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-05-20, 20:37


Loop

Inspektor






Wiek: 27
Na forum: 4289 dni
Posty: 311
Nick w MP: Inspektor

Piwa: 201

Respekt: 130
Respekt: 130

sory moj blad popraw remoweEventHandler na removeEventHandler

edit

Jak chcesz na bind to sb zmien z komendy na bind

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-05-20, 21:50


MeeShuffle

Programista/Grafik






Wiek: 32
Na forum: 4395 dni
Posty: 2758
Nick w MP: Shuffle

Piwa: 8575

Respekt: 535,3
Respekt: 535,3

active={}
active.render=false

local sw,sh guiGetScreenSize()
addEventHandler("onClientRender",root,function()
    if active.render then
        local kasa string.format("%08d"getPlayerMoney(getLocalPlayer()))
        dxDrawText("$ "..kasa..""1115/1440*sw200/900*sh1340/1440*sw230/900*shtocolor(5890255), 1.60"pricedown""left""top"falsefalsefalsefalsefalse)
      end
end)


addCommandHandler("kasa",function()
    if active.render then
        active.render=false
    else
        active.render=true
    end
end)


Podpis

https://shufflecode.pl
Static Codes and Graphics - Join our discord!
Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-05-21, 10:02


THEGizmo

Modeler/Uczeń Lua






Wiek: 27
Na forum: 4141 dni
Posty: 255
Nick w MP: THEGizmo

Piwa: 3072

Respekt: 200
Respekt: 200Respekt: 200

Dzi?ki Shuffle Dzia?a :) ?ap :piwo:

Postaw piwo autorowi tego posta
 

 
Tagi: show :: dxdrawtext :: jak
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » LUA Ten temat jest zablokowany bez możliwości zmiany postów lub pisania odpowiedzi

Nie możesz pisać nowych tematów
Nie możesz odpowiadać w tematach
Nie możesz zmieniać swoich postów
Nie możesz usuwać swoich postów
Nie możesz głosować w ankietach
Dodaj temat do Ulubionych
Wersja do druku