Postanowi?em wko?cu rzuci? si? na "g??bsz? wod?" ni? tylko "p?askie" tworzenie pseudola i zmienianie go tak jak ka?dy. Chc? wko?cu tworzy? w?asne skryptu, pos?uguj?c si? tylko wikipedi?.
W?a?nie stworzy?em m?j pierwszy, ale w?asny, skrypt na marker z tekstem po wej?ciu w niego, z pomoc? wiki mtasa.
Zauwa?y?em ?e jestem ?lepy oraz naprawd? nie ogarniam skrypt?w i pora si? nauczy? tworzenia ich bo nawet nie umia?em zauwa?y? ?e jak tworzy?em plik meta.xml to w ?rodku niego nie napisa?em na pocz?tku <meta> i na ko?cu </meta> przez co si? potem dziwi?em dlaczego nie dzia?a skrypt.
Ale przychodz? z pro?b? o pomoc w celu przedstawienia mi informacji jakich rzeczy i co musz? wiedzie? aby zrobi? dany skrypt, kt?ry teraz b?d? chcia? zrobi?, moja pierwsza praca;
Zbieracz marihuany - Wydaje mi si? ?e to proste do wykonania, ?atwiejsze by?oby chyba sv ale ja wol? to na pocz?tek jako moja w?asna pierwsza praca, bo wydaje si? ciekawsze.
Dodam ?e chcia?bym te? utworzy? ten skrypt z funkcjami dxDrawImage, ?eby by?y panele graficzne gdy si? wejdzie w marker.
Mateusesek, napisa?em w po?cie ?e chc? si? uczy? lua i szukam pomocy jakich funkcji mam u?y? do napisania tego skryptu na t? prace, ten marker to m?j pierwszy w?asny skrypt z u?yciem wiki i jest wst?pnie napisany te? do tej pracy, a abym m?g? dalej si? uczy? lua i pr?bowa? napisac skrypt, musz? wiedzie? jakich funkcj? u?y?(dxdrawimage, gui, client itp), bo jako i? nawet nie mo?na nazwa? mnie amatorem w lua, nie posiadam takiej wiedzy.
Stron? danej funkcji znajdziesz w g?rnym prawym rogu strony na WIKI MTA SA.
Odpowiednio: client - dost?pna po stronie klienta; server - dost?pna po stronie serwera; shared - dost?pna obu-stronnie
Wydaje mi si?, ?e to wszystko. W razie innych pyta?, lub dotycz?cych tego samego tematu, pisz ?mia?o. Nie pogardzi?bym respekcikiem za te wypociny
Dzi?kuje Ci bardzo Wilq, oczywi?cie respekt i w?a?nie Ci da?em, b?d? pisa? tutaj jakbym mia? jaki? problem czy co?
[ Dodano: 2019-11-10, 01:56 ]
Zrobi?em takie co?, po wej?ciu w marker wy?wietla si? obrazek, w prawid?owych kordach kt?re ustawi?em, jednak?e po wyj?ciu z markera nie znika obrazek, ci?gle si? wy?wietla.
Mam problem z przypisaniem if inMouseIn.
Zrobi?em tak jak w kodzie jest teraz i po klikni?ciu w byle co na ekranie wyskakuje taki b??d w DB3 jak na ss. Chc? zrobi? tak aby po klikni?ciu w "Rozpocznij", praca si? zaczyna?a , obrazek nam by znika? i zamro?enie gracza si? nam usuwa?o(ustawi?em ?e przy wej?ciu w marker, zamra?a gracza, ?eby si? nie rusza? bo jest obrazek), tak samo przy klikni?ciu "Anuluj", ale wtedy tylko aby zamro?enie si? usun??o oraz aby obrazek znikn??.
Nie mam kompletnie poj?cia jak si? za to zabra?, a naprawd? si? staram i chc? to zrobi?, itak ledwo co rozumiem co? z wiki, ale pr?buj?.
Kod:
--[[
Skrypt: Praca zbieracza Marihuany.
Autor Skryptu: Rynberto
Nie masz prawa u?ycia kodu skryptu bez mojej zgody.
Skrypt utworzony 09.11.2019
]]
local punktyMarycha = {
{1106.44, -1218.19, 18.24},
{1100.63, -1217.34, 18.24},
{1095.28, -1216.79, 18.24},
}
createBlip(1102.35, -1189.51, 18.32, 46,2,0,0,0,0,0,275) -- Blip Pracy
local markerPraca = createMarker(1102.35, -1189.51, 17.32, "cylinder", 2.0, 133, 133, 133, 50) -- Marker rozpocz?cia pracy
function MarkerHit ( hitPlayer, matchingDimension )
setElementData(localPlayer, "praca:hodowca", true)
showCursor(true)
setElementFrozen ( localPlayer, true)
vehicle = getPedOccupiedVehicle ( hitPlayer ) -- Je?li gracz b?dzie chcia? wej?? w marker i pracowa? w aucie, to nie b?dzie m?g? tego zrobi?
if hitPlayer ~= localPlayer then return end
if source == markerPraca then
HandleTheRendering() -- pokazuje obrazek
end
end
addEventHandler("onClientMarkerHit", root, MarkerHit)
function isMouseInPosition ( x, y, width, height )
if ( not isCursorShowing( ) ) then
return false
end
local sx, sy = guiGetScreenSize ( )
local cx, cy = getCursorPosition ( )
local cx, cy = ( cx * sx ), ( cy * sy )
return ( ( cx >= x and cx <= x + width ) and ( cy >= y and cy <= y + height ) )
end
function tworzenieMarkera()
rnd = math.random(1, #punktyMarycha)
markerRandomowy = createMarker(punktyMarycha[rnd][1], punktyMarycha[rnd][2], punktyMarycha[rnd][3], 'cylinder', 1.5)
blipRandomowy = createBlipAttachedTo(markerRandomowy, 41)
end
bindKey("mouse1", "down", function()
if not getElementData(localPlayer, "praca:hodowca") == true then return end
if isMouseIn(538*px, 527*py, 161*px, 39*py) then
setElementData(localPlayer, "praca:hodowca", false)
showCursor(false)
end
if isMouseIn(324*px, 527*py, 161*px, 39*py) then
if isPedInVehicle(localPlayer) then return end
if getElementData(localPlayer, "praca") then outputChatBox("Aktualnie ju? pracujesz!", 255, 0, 0) return end
outputChatBox("Rozpoczynasz prac? Hodowcy.", 100, 100, 250)
setElementData(localPlayer, "praca", "hodowca")
setElementData(localPlayer, "praca:hodowca", false)
showCursor(false)
tworzenieMarkera()
addEventHandler("onClientMarkerHit", markerRandomowy)
end
end)
local screenWidth,screenHeight = guiGetScreenSize() -- Ro?dzielczo??
function obrazek ( )
-- ScreenWidth, ScreenHeight, Pixel X, Pixel Y
dxDrawImage ( screenWidth/2 - 650, screenHeight/2 + -380, 1300, 800, 'Obrazki/Hodowca.png' ) -- Dodaje obrazek
end
function stopobrazek ( )
removeEventHandler("onClientRender", root, obrazek) -- Usuwa obrazek
end
function HandleTheRendering ( )
addEventHandler("onClientRender", root, obrazek) -- Dzi?ki temu jest wy?wietlany obrazek
end
No widzisz, to ju? nie jest samodzielne pisanie skrypt?w tylko skopiowanie kodu z innego.
Nie zdefiniowa?e? zmiennej 'px' i pozosta?ych. Przeanalizuj kod i zobacz czego nie masz.
local sx, sy = guiGetScreenSize ( )
local cx, cy = getCursorPosition ( )
local cx, cy = ( cx * sx ), ( cy * sy )
return ( ( cx >= x and cx <= x + width ) and ( cy >= y and cy <= y + height ) )
end
?ebym zmieni? np na to?
local px, py = guiGetScreenSize ( )
local px,py = getCursorPosition ( )
local px, py = ( px * px ), ( py * py )
return ( ( px >= x and px <= x + width ) and ( py >= y and cy <= y + height ) )
end
Tak, przyznaje si?. Skopiowa?em kod z innego skryptu bo ju? nie mia?em poj?cia jak u?y? tych danych funkcji a nie chcia?em robi? spamu co chwil? w tym temacie.
M?g?by? mi wyt?umaczy?, dlaczego np. w wiki w funkcji isMouseInPosition pisze:
addEventHandler ( "onClientRender", root,
function ( )
local imgX, imgY, imgWidth, imgHeight = 50, 50, 200, 200
dxDrawImage ( imgX, imgY, imgWidth, imgHeight, ( isMouseInPosition ( imgX, imgY, imgWidth, imgHeight ) and "myImage2.png" or "myImage.png" ), tocolor ( 255, 255, 255 ) )
end
)
Jako przyk?ad, a nie ma tam np. podanego przyk?adu jak ten
if isMouseIn(538*px, 527*py, 161*px, 39*py) then
u?yty w kodzie? Bo w?a?nie z tego powodu nie rozumiem tych funkcji, sk?d je wzi??? i jakich u?y? co do napisanych linijek.
Funkcja isMouseInPosition sprawdza, czy kursor znajduje si? w prostok?cie o podanych pozycjach i rozmiarach.
Je?li wstawisz kolejno 500, 500, 10, 10 i chcesz ?eby funkcja si? wykona?a - kursor musi by? w kwadracie o rozmiarach 10, 10 zaczynaj?cym si? w miejscu 500 / 500 pikseli.
Najpro?ciej poda? niewyskalowane warto?ci i dopiero p??niej na nich tworzy? skalowanie. U Ciebie pozycja by?a mno?ona przez skal? (rozmiar ekranu gracza / rozmiar ekranu, na kt?rym dopasowywany by? element). Czyli usu? te '*px' i zobacz czy zadzia?a. Tak samo z reszt?.
po usuni?cie "px" i "py" to blip, marker itp si? usun?? tak?e jaki? b??d napewno
Kod:
--[[
Skrypt: Praca zbieracza Marihuany.
Autor Skryptu: Rynberto
Nie masz prawa u?ycia kodu skryptu bez mojej zgody.
Skrypt utworzony 09.11.2019
]]
local punktyMarycha = {
{1106.44, -1218.19, 18.24},
{1100.63, -1217.34, 18.24},
{1095.28, -1216.79, 18.24},
}
createBlip(1102.35, -1189.51, 18.32, 46,2,0,0,0,0,0,275) -- Blip Pracy
local markerPraca = createMarker(1102.35, -1189.51, 17.32, "cylinder", 2.0, 133, 133, 133, 50) -- Marker rozpocz?cia pracy
function MarkerHit ( hitPlayer, matchingDimension )
setElementData(localPlayer, "praca:hodowca", true)
showCursor(true)
setElementFrozen ( localPlayer, true)
vehicle = getPedOccupiedVehicle ( hitPlayer ) -- Je?li gracz b?dzie chcia? wej?? w marker i pracowa? w aucie, to nie b?dzie m?g? tego zrobi?
if hitPlayer ~= localPlayer then return end
if source == markerPraca then
HandleTheRendering() -- pokazuje obrazek
end
end
addEventHandler("onClientMarkerHit", root, MarkerHit)
function isMouseInPosition ( x, y, width, height )
if ( not isCursorShowing( ) ) then
return false
end
local sx, sy = guiGetScreenSize ( )
local cx, cy = getCursorPosition ( )
local cx, cy = ( cx * sx ), ( cy * sy )
return ( ( cx >= x and cx <= x + width ) and ( cy >= y and cy <= y + height ) )
end
function tworzenieMarkera()
rnd = math.random(1, #punktyMarycha)
markerRandomowy = createMarker(punktyMarycha[rnd][1], punktyMarycha[rnd][2], punktyMarycha[rnd][3], 'cylinder', 1.5)
blipRandomowy = createBlipAttachedTo(markerRandomowy, 41)
end
bindKey("mouse1", "down", function()
if not getElementData(localPlayer, "praca:hodowca") == true then return end
if isMouseIn(538*, 527*, 161*, 39*) then
setElementData(localPlayer, "praca:hodowca", false)
showCursor(false)
end
if isMouseIn(324*, 527*, 161*, 39*) then
if isPedInVehicle(localPlayer) then return end
if getElementData(localPlayer, "praca") then outputChatBox("Aktualnie ju? pracujesz!", 255, 0, 0) return end
outputChatBox("Rozpoczynasz prac? Hodowcy.", 100, 100, 250)
setElementData(localPlayer, "praca", "hodowca")
setElementData(localPlayer, "praca:hodowca", false)
showCursor(false)
tworzenieMarkera()
addEventHandler("onClientMarkerHit", markerRandomowy)
end
end)
local screenWidth,screenHeight = guiGetScreenSize() -- Ro?dzielczo??
function obrazek ( )
-- ScreenWidth, ScreenHeight, Pixel X, Pixel Y
dxDrawImage ( screenWidth/2 - 650, screenHeight/2 + -380, 1300, 800, 'Obrazki/Hodowca.png' ) -- Dodaje obrazek
end
function stopobrazek ( )
removeEventHandler("onClientRender", root, obrazek) -- Usuwa obrazek
end
function HandleTheRendering ( )
addEventHandler("onClientRender", root, obrazek) -- Dzi?ki temu jest wy?wietlany obrazek
end
--[[
Skrypt: Praca zbieracza Marihuany.
Autor Skryptu: Rynberto
Nie masz prawa u?ycia kodu skryptu bez mojej zgody.
Skrypt utworzony 09.11.2019
]]
local punktyMarycha = {
{1106.44, -1218.19, 18.24},
{1100.63, -1217.34, 18.24},
{1095.28, -1216.79, 18.24},
}
createBlip(1102.35, -1189.51, 18.32, 46,2,0,0,0,0,0,275) -- Blip Pracy
local markerPraca = createMarker(1102.35, -1189.51, 17.32, "cylinder", 2.0, 133, 133, 133, 50) -- Marker rozpocz?cia pracy
function MarkerHit ( hitPlayer, matchingDimension )
setElementData(localPlayer, "praca:hodowca", true)
showCursor(true)
setElementFrozen ( localPlayer, true)
vehicle = getPedOccupiedVehicle ( hitPlayer ) -- Je?li gracz b?dzie chcia? wej?? w marker i pracowa? w aucie, to nie b?dzie m?g? tego zrobi?
if hitPlayer ~= localPlayer then return end
if source == markerPraca then
HandleTheRendering() -- pokazuje obrazek
end
end
addEventHandler("onClientMarkerHit", root, MarkerHit)
function isMouseIn ( x, y, width, height )
if ( not isCursorShowing( ) ) then
return false
end
local sx, sy = guiGetScreenSize ( )
local cx, cy = getCursorPosition ( )
local cx, cy = ( cx * sx ), ( cy * sy )
return ( ( cx >= x and cx <= x + width ) and ( cy >= y and cy <= y + height ) )
end
function tworzenieMarkera()
rnd = math.random(1, #punktyMarycha)
markerRandomowy = createMarker(punktyMarycha[rnd][1], punktyMarycha[rnd][2], punktyMarycha[rnd][3], 'cylinder', 1.5)
blipRandomowy = createBlipAttachedTo(markerRandomowy, 41)
end
bindKey("mouse1", "down", function()
if not getElementData(localPlayer, "praca:hodowca") == true then return end
if isMouseIn(538, 527, 161, 39) then
setElementData(localPlayer, "praca:hodowca", false)
showCursor(false)
end
if isMouseIn(324, 527, 161, 39) then
if isPedInVehicle(localPlayer) then return end
if getElementData(localPlayer, "praca") then outputChatBox("Aktualnie ju? pracujesz!", 255, 0, 0) return end
outputChatBox("Rozpoczynasz prac? Hodowcy.", 100, 100, 250)
setElementData(localPlayer, "praca", "hodowca")
setElementData(localPlayer, "praca:hodowca", false)
showCursor(false)
tworzenieMarkera()
addEventHandler("onClientMarkerHit", markerRandomowy)
end
end)
local screenWidth,screenHeight = guiGetScreenSize() -- Ro?dzielczo??
function obrazek ( )
-- ScreenWidth, ScreenHeight, Pixel X, Pixel Y
dxDrawImage ( screenWidth/2 - 650, screenHeight/2 + -380, 1300, 800, 'Obrazki/Hodowca.png' ) -- Dodaje obrazek
end
function stopobrazek ( )
removeEventHandler("onClientRender", root, obrazek) -- Usuwa obrazek
end
function HandleTheRendering ( )
addEventHandler("onClientRender", root, obrazek) -- Dzi?ki temu jest wy?wietlany obrazek
end
Wszystko pi?knie dzia?a, dzi?kuje Ci jeszcze raz. Ustawi?em te? usuwanie obrazka po klikni?ciu w oba przyciski. Zajm? si? teraz animacj?, dodawaniem obiektu. A u?y?em tego aby usun?? obrazek
[ Dodano: 2019-11-11, 11:33 ]
Gdy rozpoczn? prac?, oraz wejd? w marker wylosowanego punkty marychy, w??cza mi si? kursos myszy oraz gdy klikne w miejsce tam gdzie jest przycisk rozpocznij i anuluj w markerze rozpocz?cia, to pisze ?e ju? aktualnie pracuje, i przy anuluj wy??cza si? kursor. Co zrobi?em ?le w kodzie ?e tak si? dzieje?
Chcia?bym zrobi? tak ?e normalnie po wej?ciu w randomowy marker punkty marychy, chowa? si? ten kursor oraz funkcj?
if isMouseIn
.
Kod:
--[[
Skrypt: Praca zbieracza Marihuany.
Autor Skryptu: Rynberto
Nie masz prawa u?ycia kodu skryptu bez mojej zgody.
Skrypt utworzony 09.11.2019
]]
createBlip(1102.35, -1189.51, 18.32, 46,2,0,0,0,0,0,275) -- Blip Pracy
local markerPraca = createMarker(1102.35, -1189.51, 17.32, "cylinder", 2.0, 133, 133, 133, 50) -- Marker rozpocz?cia pracy
local punktyMarycha = {
{1106.44, -1218.19, 18.24},
{1100.63, -1217.34, 18.24},
{1095.28, -1216.79, 18.24},
}
function MarkerHit ( hitPlayer, matchingDimension )
setElementData(localPlayer, "praca:hodowca", true)
showCursor(true)
setElementFrozen ( localPlayer, true)
vehicle = getPedOccupiedVehicle ( hitPlayer ) -- Je?li gracz b?dzie chcia? wej?? w marker i pracowa? w aucie, to nie b?dzie m?g? tego zrobi?
if hitPlayer ~= localPlayer then return end
if source == markerPraca then
HandleTheRendering() -- pokazuje obrazek
end
end
addEventHandler("onClientMarkerHit", root, MarkerHit)
function isMouseIn ( x, y, width, height ) -- FunkcjaKlikuMysz?
if ( not isCursorShowing( ) ) then
return false
end
local sx, sy = guiGetScreenSize ( )
local cx, cy = getCursorPosition ( )
local cx, cy = ( cx * sx ), ( cy * sy )
return ( ( cx >= x and cx <= x + width ) and ( cy >= y and cy <= y + height ) )
end
function tworzenieMarkera() -- Funkcja randomowych punkt?wMarychy
rnd = math.random(1, #punktyMarycha)
markerRandomowy = createMarker(punktyMarycha[rnd][1], punktyMarycha[rnd][2], punktyMarycha[rnd][3], 'cylinder', 1.5)
blipRandomowy = createBlipAttachedTo(markerRandomowy, 41)
end
bindKey("mouse1", "down", function() -- Bind pod menu obrazka
if not getElementData(localPlayer, "praca:hodowca") == true then return end
if isMouseIn(734, 507, 165, 39) then -- Przycisk Anuluj
setElementFrozen ( localPlayer, false) -- Odmro?enie gracza je?li wybierze anuluj
setElementData(localPlayer, "praca:hodowca", false)
showCursor(false)
removeEventHandler("onClientRender", root, obrazek) -- Usuwa obrazek
end
if isMouseIn(734, 447, 165, 39) then -- Przycisk Rozpocznij
if isPedInVehicle(localPlayer) then return end
if getElementData(localPlayer, "praca") then outputChatBox("Aktualnie ju? pracujesz!", 255, 0, 0) return end
outputChatBox("Rozpoczynasz prac? Hodowcy.", 100, 100, 250)
setElementData(localPlayer, "praca", "hodowca")
toggleControl("sprint", false ) -- Wy??czenie sprintu podczas pracy
toggleControl("jump", false ) -- Wy??czenie skakania podczas pracy
toggleControl("crouch", false ) -- Wy??czenie skradania si? podczas pracy
setElementFrozen ( localPlayer, false) -- Odmro?enie gracza je?li wybierze Rozpocznij
setElementData(localPlayer, "praca:hodowca", false)
showCursor(false)
tworzenieMarkera()
removeEventHandler("onClientRender", root, obrazek) -- Usuwa obrazek
addEventHandler("onClientMarkerHit", markerRandomowy)
end
end)
local screenWidth,screenHeight = guiGetScreenSize() -- Ro?dzielczo??
function obrazek ( )
-- ScreenWidth, ScreenHeight, Pixel X, Pixel Y
dxDrawImage ( screenWidth/2 - 650, screenHeight/2 + -380, 1300, 800, 'Obrazki/Hodowca.png' ) -- Dodaje obrazek
end
function stopobrazek ( )
removeEventHandler("onClientRender", root, obrazek) -- Usuwa obrazek
end
function HandleTheRendering ( )
addEventHandler("onClientRender", root, obrazek) -- Dzi?ki temu jest wy?wietlany obrazek
end
[ Dodano: 2019-11-12, 14:09 ]
Teraz sprawdzi?em i mam problem, gdy? jak wejd? w oboj?tnie jaki marker(nie zale?nie czy to od pracy hodowcy czy przecho itp) to wy?wietla si? kursor i punkty funkcji ifInMouse, z tego skryptu.
Co jest ?le zrobione?
--[[
Skrypt: Praca zbieracza Marihuany.
Autor Skryptu: Rynberto
Nie masz prawa u?ycia kodu skryptu bez mojej zgody.
Skrypt utworzony 09.11.2019
]]
createBlip(1102.35, -1189.51, 18.32, 46,2,0,0,0,0,0,275) -- Blip Pracy
local markerPraca = createMarker(1102.35, -1189.51, 17.32, "cylinder", 2.0, 133, 133, 133, 50) -- Marker rozpocz?cia pracy
local punktyMarycha = {
{1106.44, -1218.19, 18.24},
{1100.63, -1217.34, 18.24},
{1095.28, -1216.79, 18.24},
}
function MarkerHit ( hitPlayer, matchingDimension )
setElementData(localPlayer, "praca:hodowca", true)
showCursor(true)
setElementFrozen ( localPlayer, true)
vehicle = getPedOccupiedVehicle ( hitPlayer ) -- Je?li gracz b?dzie chcia? wej?? w marker i pracowa? w aucie, to nie b?dzie m?g? tego zrobi?
if hitPlayer ~= localPlayer then return end
if source == markerPraca then
HandleTheRendering() -- pokazuje obrazek
end
end
addEventHandler("onClientMarkerHit", root, MarkerHit)
function isMouseIn ( x, y, width, height ) -- FunkcjaKlikuMysz?
if ( not isCursorShowing( ) ) then
return false
end
local sx, sy = guiGetScreenSize ( )
local cx, cy = getCursorPosition ( )
local cx, cy = ( cx * sx ), ( cy * sy )
return ( ( cx >= x and cx <= x + width ) and ( cy >= y and cy <= y + height ) )
end
function tworzenieMarkera() -- Funkcja randomowych punkt?wMarychy
rnd = math.random(1, #punktyMarycha)
markerRandomowy = createMarker(punktyMarycha[rnd][1], punktyMarycha[rnd][2], punktyMarycha[rnd][3], 'cylinder', 1.5)
blipRandomowy = createBlipAttachedTo(markerRandomowy, 41)
end
bindKey("mouse1", "down", function() -- Bind pod menu obrazka
if not getElementData(localPlayer, "praca:hodowca") == true then return end
if isMouseIn(734, 507, 165, 39) then -- Przycisk Anuluj
setElementFrozen ( localPlayer, false) -- Odmro?enie gracza je?li wybierze anuluj
setElementData(localPlayer, "praca:hodowca", false)
showCursor(false)
removeEventHandler("onClientRender", root, obrazek) -- Usuwa obrazek
end
if isMouseIn(734, 447, 165, 39) then -- Przycisk Rozpocznij
if isPedInVehicle(localPlayer) then return end
if getElementData(localPlayer, "praca") then outputChatBox("Aktualnie ju? pracujesz!", 255, 0, 0) return end
outputChatBox("Rozpoczynasz prac? Hodowcy.", 100, 100, 250)
setElementData(localPlayer, "praca", "hodowca")
toggleControl("sprint", false ) -- Wy??czenie sprintu podczas pracy
toggleControl("jump", false ) -- Wy??czenie skakania podczas pracy
toggleControl("crouch", false ) -- Wy??czenie skradania si? podczas pracy
setElementFrozen ( localPlayer, false) -- Odmro?enie gracza je?li wybierze Rozpocznij
setElementData(localPlayer, "praca:hodowca", false)
showCursor(false)
tworzenieMarkera()
removeEventHandler("onClientRender", root, obrazek) -- Usuwa obrazek
addEventHandler("onClientMarkerHit", markerRandomowy)
end
end)
local screenWidth,screenHeight = guiGetScreenSize() -- Ro?dzielczo??
function obrazek ( )
-- ScreenWidth, ScreenHeight, Pixel X, Pixel Y
dxDrawImage ( screenWidth/2 - 650, screenHeight/2 + -380, 1300, 800, 'Obrazki/Hodowca.png' ) -- Dodaje obrazek
end
function stopobrazek ( )
removeEventHandler("onClientRender", root, obrazek) -- Usuwa obrazek
end
function HandleTheRendering ( )
addEventHandler("onClientRender", root, obrazek) -- Dzi?ki temu jest wy?wietlany obrazek
end
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