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

Wysłany: 2019-02-22, 14:12


Gravgor







Wiek: 22
Na forum: 3619 dni
Posty: 380
Nick w MP: 1944

Piwa: 702

Respekt: 57,8

local elo=createColCuboid(1612.37, -1801.6812.4710.7510.56.75)
local bm="910340"
local s1="Srednia"
local l1="Duza"
local fc="825400"
local bb="186000"
local zlecenia2={
--nazwazarobekcelzarobek RP--
{"Silniki"bb"BB"s1},
{"Imigranci"fc"FC""Mala"},
}
local screenWscreenH guiGetScreenSize()

gluwno guiCreateWindow((screenW 390) / 2, (screenH 285) / 2390285"System zlece?"false)
local gridlist =  guiCreateGridList(1068370176falsegluwno)
local zlecenie guiGridListAddColumn(gridlist"Zlecenie"0.4)
local zarobek guiGridListAddColumn(zlecenia"Zarobek"0.2)
local cel guiGridListAddColumn(gridlist"Cel"0.2)
local wartosc guiGridListAddColumn(gridlist"Warto??"0.1)

guiSetVisible(gluwnofalse)
guiSetVisible(gridlistfalse)

addEvent("kur:open"true)
addEventHandler("kur:open"getRootElement(), function(hitElement)
if hitElement == localPlayer then
    guiSetVisible(gluwnotrue)
    guiSetVisible(gridlisttrue)
    guiWindowSetMovable(gluwnofalse)
    guiWindowSetSizable(gluwnofalse)
    guiSetAlpha(gluwno0.75)
    informejszyn guiCreateLabel(162936443"Poni?ej wy?wietlono mo?liwe zlecenia, wybierz jedno z nich a nast?pnie kliknij OK."falsegluwno)
    guiSetFont(informejszyn"default-bold-small")
    guiLabelSetHorizontalAlign(informejszyn"left"true)
    button guiCreateButton(23624914426"ZAMKNIJ"falsegluwno)
    ok guiCreateButton(1024914426"OK"falsegluwno)
    for i,v in pairs(zlecenia2) do
    local row guiGridListAddRow(gridlist)
    guiGridListSetItemText(gridlistrow1v[1], falsefalse)
    guiGridListSetItemText(gridlist,row2v[2].." $"falsefalse)
    guiGridListSetItemText(gridlistrow3v[3], falsefalse)
    guiGridListSetItemText(gridlistrow4v[4], falsefalse)
    info1=v[1]
    info2=v[2]
    info3=v[3]
    info4=v[4]
    showCursor(true)
    end
    end
end)

addEvent("bbm:create"true)
addEventHandler("bbm:create"getRootElement(), function(gracz)
if gracz ~= localPlayer then return end
bbm=createBlip(212.8824.882.5741)
end)

addEvent("bfc:create"true)
addEventHandler("bfc:create"getRootElement(), function(gracz)
if gracz ~= localPlayer then return end
bfc=createBlip(-361.081191.4319.7441)
end)

addEvent("bbb:create"true)
addEventHandler("bbb:create"getRootElement(), function(gracz)
if gracz ~= localPlayer then return end
bbb=createBlip(212.8824.882.5741)
end)

addEvent("bbm:destroy"true)
addEventHandler("bbm:destroy"getRootElement(), function(gracz)
if gracz ~= localPlayer then return end
destroyElement(bbm)
end)

addEvent("bfc:destroy"true)
addEventHandler("bfc:destroy"getRootElement(), function(gracz)
if gracz ~= localPlayer then return end
destroyElement(bfc)
end)

addEvent("bbb:destroy"true)
addEventHandler("bbb:destroy"getRootElement(), function(gracz)
if gracz ~= localPlayer then return end
destroyElement(bbb)
end)


function click()
if source == button then
showCursor(false)
guiSetVisible(gluwno,false)
end
if source == ok then
wrowwcol guiGridListGetSelectedItem zlecenia )
akcja guiGridListGetItemTextzleceniawrowkolumna )
if akcja == "" then outputChatBox("Musisz wybra? zlecenie"255255255) return end
for i,v in pairs(zlecenia2) do
if akcja==v[1then
local vehicles=getElementsWithinColShape(elo,"vehicle")
if #vehicles > 0 then
outputChatBox("Poczekaj a? gracz odjedzie z miejsca spawnu pojazdu!"255255255)
guiSetVisible(gluwno,false)
showCursor(false)
return
end
guiSetVisible(gluwno,false)
showCursor(false)
outputChatBox("Informacje nt. zlecenia:"255255255)
outputChatBox("Zlecenie: "..v[1]..""255255255)
outputChatBox("Zarobek: "..v[2].." $"255255255)
--outputChatBox("Za wykonanie zlecenia otrzymasz: "..v[4].." RP"255255255)
triggerServerEvent("k:zacznij"localPlayerlocalPlayerv[1], v[2], v[3], v[4])
end
end
end
end
addEventHandler "onClientGUIClick"resourceRootclick)
fileDelete("c.lua")



Podpis
Portfolio marceliborowczak.me
Postaw piwo autorowi tego posta
 

 
Wysłany: 2019-02-22, 15:50


Pyrek24







Wiek: 25
Na forum: 3438 dni
Posty: 546
Nick w MP: Pyrek

Piwa: 10

Respekt: 50

Git, lecz jak klikam w gui, to taki b??d.
https://imgur.com/YTZTHRH

Podpis
amta
Postaw piwo autorowi tego posta
 

 
Wysłany: 2019-02-23, 11:48


Gravgor







Wiek: 22
Na forum: 3619 dni
Posty: 380
Nick w MP: 1944

Piwa: 702

Respekt: 57,8

local elo=createColCuboid(1612.37, -1801.6812.4710.7510.56.75)
local bm="910340"
local s1="Srednia"
local l1="Duza"
local fc="825400"
local bb="186000"
local zlecenia2={
--nazwazarobekcelzarobek RP--
{"Silniki"bb"BB"s1},
{"Imigranci"fc"FC""Mala"},
}
local screenWscreenH guiGetScreenSize()

gluwno guiCreateWindow((screenW 390) / 2, (screenH 285) / 2390285"System zlece?"false)
local gridlist =  guiCreateGridList(1068370176falsegluwno)
local zlecenie guiGridListAddColumn(gridlist"Zlecenie"0.4)
local zarobek guiGridListAddColumn(zlecenia"Zarobek"0.2)
local cel guiGridListAddColumn(gridlist"Cel"0.2)
local wartosc guiGridListAddColumn(gridlist"Warto??"0.1)

guiSetVisible(gluwnofalse)
guiSetVisible(gridlistfalse)

addEvent("kur:open"true)
addEventHandler("kur:open"getRootElement(), function(hitElement)
if hitElement == localPlayer then
    guiSetVisible(gluwnotrue)
    guiSetVisible(gridlisttrue)
    guiWindowSetMovable(gluwnofalse)
    guiWindowSetSizable(gluwnofalse)
    guiSetAlpha(gluwno0.75)
    informejszyn guiCreateLabel(162936443"Poni?ej wy?wietlono mo?liwe zlecenia, wybierz jedno z nich a nast?pnie kliknij OK."falsegluwno)
    guiSetFont(informejszyn"default-bold-small")
    guiLabelSetHorizontalAlign(informejszyn"left"true)
    button guiCreateButton(23624914426"ZAMKNIJ"falsegluwno)
    ok guiCreateButton(1024914426"OK"falsegluwno)
    for i,v in pairs(zlecenia2) do
    local row guiGridListAddRow(gridlist)
    guiGridListSetItemText(gridlistrow1v[1], falsefalse)
    guiGridListSetItemText(gridlist,row2v[2].." $"falsefalse)
    guiGridListSetItemText(gridlistrow3v[3], falsefalse)
    guiGridListSetItemText(gridlistrow4v[4], falsefalse)
    info1=v[1]
    info2=v[2]
    info3=v[3]
    info4=v[4]
    showCursor(true)
    end
    end
end)

addEvent("bbm:create"true)
addEventHandler("bbm:create"getRootElement(), function(gracz)
if gracz ~= localPlayer then return end
bbm=createBlip(212.8824.882.5741)
end)

addEvent("bfc:create"true)
addEventHandler("bfc:create"getRootElement(), function(gracz)
if gracz ~= localPlayer then return end
bfc=createBlip(-361.081191.4319.7441)
end)

addEvent("bbb:create"true)
addEventHandler("bbb:create"getRootElement(), function(gracz)
if gracz ~= localPlayer then return end
bbb=createBlip(212.8824.882.5741)
end)

addEvent("bbm:destroy"true)
addEventHandler("bbm:destroy"getRootElement(), function(gracz)
if gracz ~= localPlayer then return end
destroyElement(bbm)
end)

addEvent("bfc:destroy"true)
addEventHandler("bfc:destroy"getRootElement(), function(gracz)
if gracz ~= localPlayer then return end
destroyElement(bfc)
end)

addEvent("bbb:destroy"true)
addEventHandler("bbb:destroy"getRootElement(), function(gracz)
if gracz ~= localPlayer then return end
destroyElement(bbb)
end)


function click()
if source == button then
showCursor(false)
guiSetVisible(gluwno,false)
end
if source == ok then
wrow guiGridListGetSelectedItem (gridlist)
akcja guiGridListGetItemText(gridlistwrowzlecenie)
if akcja == "" then outputChatBox("Musisz wybra? zlecenie"255255255) return end
for i,v in pairs(zlecenia2) do
if akcja==v[1then
local vehicles=getElementsWithinColShape(elo,"vehicle")
if #vehicles > 0 then
outputChatBox("Poczekaj a? gracz odjedzie z miejsca spawnu pojazdu!"255255255)
guiSetVisible(gluwno,false)
showCursor(false)
return
end
guiSetVisible(gluwno,false)
showCursor(false)
outputChatBox("Informacje nt. zlecenia:"255255255)
outputChatBox("Zlecenie: "..v[1]..""255255255)
outputChatBox("Zarobek: "..v[2].." $"255255255)
--outputChatBox("Za wykonanie zlecenia otrzymasz: "..v[4].." RP"255255255)
triggerServerEvent("k:zacznij"localPlayerlocalPlayerv[1], v[2], v[3], v[4])
end
end
end
end
addEventHandler "onClientGUIClick"resourceRootclick)
fileDelete("c.lua")


Podpis
Portfolio marceliborowczak.me
Postaw piwo autorowi tego posta
 

 
Wysłany: 2019-02-23, 18:07


Pyrek24







Wiek: 25
Na forum: 3438 dni
Posty: 546
Nick w MP: Pyrek

Piwa: 10

Respekt: 50

Wszystko git, lecz gdy mamy t? tabele to zamiast wy?wietla? pojedynczo to si? wy?wietla ka?de zlecenie podw?jnie.

--nazwa, zarobek, cel, zarobek RP--
{"Silniki", bb, "BB", s1},
{"Imigranci", fc, "FC", "Mala"},
}

ss

https://imgur.com/S9Eu6Sw

Podpis
amta
Postaw piwo autorowi tego posta
 

 
Tagi: praca :: dostawcy.
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » LUA » Praca dostawcy. 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