| Tematy otagowane jako: lakiernik |
| 1. lakiernik pys 3.0 |
kto? mi powie czemu lakiernik z pysa mi tak sypie i nie mog? pomalowa? auta?
https://imgur.com/a/fR8Nsvx |
| 2. Lakiernik |
Witam mam takie problem z tym skryptem chodzi o to ze jak zmieni? kordy to lakiernia przestaje dzia?a? i ci?gle mam info"Na stanowisku lakierniczym nie ma ?adnego pojazdu!"
lakiernia:
[lua]local strefyLakiernicze = {
LakierniaDoherty = {
cuboid = {2161.76, -2167.07, 13.61, 10.00, 9.00, 5.00},-- cuboid w ktorym musi znalezc sie pojazd
marker = {2154.07,-2164.98,13.55-1}, -- pozycja markera w ktorym gracz bedzie stal aby w??czy? lakierni?
dostep_frakcja = 1, -- id frakcji ktora ma do tego dostep
},
}
for i,v in pairs(strefyLakiernicze) do
setGarageOpen(21, true)
l_cuboid = createColCuboid(unpack(v.cuboid))
l_wybor = createMarker(v.marker[1], v.marker[2], v.marker[3], "cylinder", 1.5, 23,214,255,140)
setElementData(l_wybor, "dostep_frakcja", v.dostep_frakcja)
setElementData(l_wybor, "lakiernia_cs", l_cuboid)
end
addEventHandler("onMarkerHit", resourceRoot, function(el, md)
if getElementType(el) == "player" then
local pojazd = getElementsWithinColShape(l_cuboid, "vehicle")
if #pojazd<1 then
outputChatBox("Na stanowisku lakierniczym nie ma ?adnego pojazdu!", el)
return
end
if #pojazd>1 then
outputChatBox("Na stanowisku lakierniczym jest zbyt du?o pojazd?w!", el)
... |
| 3. Lakiernik |
Witam mam takie problem ze jak wgram ten skrypt na lakiernika to w ka?dym markerze wyskakuje tabela z malowaniem.
[lua]local strefyLakiernicze = {
LakierniaDoherty = {
cuboid = {1909.25574,-1861.56250, 13.60732-1, 12.00, 8.00, 7.00},-- cuboid w ktorym musi znalezc sie pojazd
marker = {1922.22437,-1853.95325,13.56194-0.9}, -- pozycja markera w ktorym gracz bedzie stal aby w??czy? lakierni?
dostep_frakcja = 1, -- id frakcji ktora ma do tego dostep
},
}
for i,v in pairs(strefyLakiernicze) do
setGarageOpen(21, true)
l_cuboid = createColCuboid(unpack(v.cuboid))
l_wybor = createMarker(v.marker[1], v.marker[2], v.marker[3], "cylinder", 1, 0, 0, 0, 100)
setElementData(l_wybor, "dostep_frakcja", v.dostep_frakcja)
setElementData(l_wybor, "lakiernia_cs", l_cuboid)
end
addEventHandler("onMarkerHit", root, function(el, md)
if getElementType(el) == "player" then
local pojazd = getElementsWithinColShape(l_cuboid, "vehicle")
if #pojazd<1 then
outputChatBox("Na stanowisku lakierniczym nie ma ?adnego pojazdu!", el)
return
end
if #pojazd>1 then
outputChatBox("Na stanowisku lakierniczym jest zbyt du?o pojazd?w!", el)
return
end
for _,v in ipairs(ge... |
| 4. Lakiernik |
Siemka pisz? skrypt na lakiernika no i mam problem gdy wejd? w marker nic si? nie dzieje DB3 czyste
[spoiler][lua]
local strefyLakiernicze = {
LakierniaDoherty = {
cuboid = {-2338.12,-173.06,35.32, 6.25, 10, 4},-- cuboid w ktorym musi znalezc sie pojazd
marker = {-2337.73,-164.01,34.32}, -- pozycja markera w ktorym gracz bedzie stal aby w??czy? lakierni?
},
}-
for i,v in pairs(strefyLakiernicze) do
l_cuboid = createColCuboid(unpack(v.cuboid))
l_wybor = createMarker(v.marker[1], v.marker[2], v.marker[3], "cylinder", 1, 0, 0, 0, 100)
end
addEventHandler("onMarkerHit",l_wybor,
function ( player )
local pojazdy = getElementsWithinColShape(l_cuboid,"vehicle")
if pojazdy ~= 1 then
outputChatBox("Za du?o lub za ma?o pojazd?w na stanowisku",player)
else
outputChatBox("Wpisz /kolor <r> <g> <b>",player)
outputChatBox("Aby ustawi? kolor pojazdu! Koszt : 1000 EUR",player)
outputChatBox("Liste kolor?w mo?esz sprawdzi? na: https://pl.wikipedia.org/wiki/Lista_kolor%C3%B3w",player)
end
end
)
addCommandHandler("kolor",
function (player, cmd, r, g, b)
local pojazd = getElementsWithinColShape(l_cuboid,"vehicle")
if isElementWithinMarker(player,l_wybor) then
if pojazd ~= 1 then
outputChatBox("Za du?o lub za ma?o pojazd?w!",player)
end
if r and g and b then
setVehicl... |
| 5. Lakiernik |
Siemano, posiadam skrypt na lakiernika w ls jednak?e mam ma?y problem, wszystko dzia?a lecz denerwuje mnie jeden warning.
[code](GER)-MechanikDoherty/lakiernia.lua:30: Bad argument @ 'getElementData' [Expected element at argument 1, got boolean][/code]
Tak wygl?da kod:
[lua]local strefyLakiernicze = {
LakierniaDoherty = {
cuboid = {1909.25574,-1861.56250, 13.60732-1, 12.00, 8.00, 7.00},-- cuboid w ktorym musi znalezc sie pojazd
marker = {1922.22437,-1853.95325,13.56194-0.9}, -- pozycja markera w ktorym gracz bedzie stal aby w??czy? lakierni?
dostep_frakcja = 1, -- id frakcji ktora ma do tego dostep
},
}
for i,v in pairs(strefyLakiernicze) do
setGarageOpen(21, true)
l_cuboid = createColCuboid(unpack(v.cuboid))
l_wybor = createMarker(v.marker[1], v.marker[2], v.marker[3], "cylinder", 1, 0, 0, 0, 100)
setElementData(l_wybor, "dostep_frakcja", v.dostep_frakcja)
setElementData(l_wybor, "lakiernia_cs", l_cuboid)
end
addEventHandler("onMarkerHit", root, function(el, md)
if getElementData(source, "lakiernia_cs") then
local accName = getAccountName (getPlayerAccount(el))
if isObjectInACLGroup("user."..accName, aclGetGroup("Mechanik")) then
if getElementType(el) == "player" then
local pojazd = getElementsWithinColShape(l_cuboid, "vehicle")
if #pojazd<1 the... |
| 6. Tuninger i lakiernik |
| Jak zrobi? tuningera i lakiernika bo potrzebowa? bym. |
| 7. Lakiernik |
| Witam. Chcia?bym si? skierowa? z pro?b? do was, poniewa? robi? serwer i aktualnie chcia?bym pracowa? nad frakcj? Lakiernik, lecz nwm jakich funkcji do tej pracy u?y?. Praca ma polega? na tym, ?e je?eli pojazd stoi w danym miejscu czyli w ?rodku gara?u lakierniczego to lakiernik mo?e wej?? w markery, kt?re s? stworzone po bokach gara?u. Markery s? r??nego koloru, poniewa? je?li mechanik wejdzie np. w czerwony marker to pojazd si? maluje na czerwono itp. I nwm jakie da? funkcje opr?cz createMarker. |
|