Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.
GTAONLINE.PL
Tematy otagowane jako: praca
121. Praca dorywcza - źle działa :/
Mam problem z prac?, polega on na tym, ?e po rozpocz?ciu pracy ?adujemy pojazd, a po za?adowaniu mamy uda? si? do punktu ?eby roz?adowa?, ale podczas roz?adowywania nie dostaje si? kasy, checkpoint nie znika, pojazd b?d?c w tym punkcie ci?gle jest zamro?ony, a podczas wyj?cia z pojazdu, po chwili pojazd powinien znikn?? i zrespi? si? na swoim miejscu - tak si? nie dzieje :/

Serwer:
[lua]createBlip(-1655.24, 1315.20, 6.77, 46, 2, 0, 0, 0, 0, 0, 400)

local JobOnline = true
local JobVehicles = {

{440, -1655.24, 1315.20, 6.77+0.30, 0, 0, 90},
{440, -1655.24, 1311.20, 6.77+0.30, 0, 0, 90},
{440, -1655.24, 1307.20, 6.77+0.30, 0, 0, 90},
{440, -1655.24, 1302.20, 6.77+0.30, 0, 0, 90},

}

local code = "dostawca"

for i,v in ipairs(JobVehicles) do
local veh = createVehicle(v[1], v[2], v[3], v[4], v[5], v[6], v[7])
setVehicleRespawnPosition(veh, v[1], v[2], v[3], v[4], v[5], v[6], v[7])
setVehicleHandling(veh, "maxVelocity", 100)
setElementData(veh, "vehicle:job", code)
setVehiclePlateText(veh, "DOSTAWCA")
setVehicleColor(veh, 20, 20, 20, 20, 20, 20)
setVehicleDamageProof(veh, true)
setElementFrozen(veh, true)
removeVehicleSirens(veh)
end


addEvent("givePlayerMoney", true)
addEventHandler("givePlayerMoney", resourceRoot, function(kwota)
givePlayerMoney (client, kwota)
end)


addEventHandler("onVehicleStartEnter", resourceRoot, function(plr, seat)
if...
122. Premium Praca
Dzie? dobry szukam funkcji lub pomocy gdy? chce zrobi? tak ?e zwyk?y gracz na pracy kurierze zarabia normalnie a Premium 25% wi?cej.
123. [SKRYPT] Praca spawacza
Witam u?ytkownik?w forum GTAONLINE.PL.
Chcia?bym dzisiaj odda? w wasze r?ce prace spawacza polegaj?ca na spawaniu w dxDrawie poprzez przesuni?cie cursora myszki po okre?lonej trasie.
Praca jest nie doko?czona otwiera si? ona przy w??czeniu skryptu ( mo?na to ?atwo naprawi?.

[color=orange][size=18]
[b]Zalety skryptu: [/b][/size][/color]
[list][b]Innowacja
Prostota skryptu
System poziom?w
Mo?liwo?? wprowadzenia nowych tras ( spawu )
dxDraw
Auto Rozdzielczo?? ( na ka?dym monitorze praca wygl?da podobnie )
Brak grafiki [ wszystko funkcje MTA ][/b]
[/list]

[color=orange][b]Autor:[/b][/color] ja [luki123luki123]

[size=18][center][color=orange]Prezentacja[/color][/center][/size][line]
[youtube]Hv2kMCu0d_s[/youtube]
[size=18][center][color=orange]Download/Pobierz[/color][/center][/size][line]
[hide]Wiadomość została ukryta, aby ją przeczytać należy się zalogować.[/hide]
[center][color=red]Wyra?am zgod? na edytacje skryptu prosz? jedynie o zostawienie w pliku meta autora skryptu.[/color][/center]


[size=18][center][color=orange]Dodawanie poziom?w[/color][/center][/size][line]
Aby doda? nowy poziom trzeba zastosowa? si? do tego wzoru:
[lua]local linia = {
[1] = {
{ x= screenW*0.1250, y= screenH*0.3472, sz= screenW*0.6250, wy= screenH*0.0069, pos="x+" },
{ x= screenW*0.7500, y= screenH*0.3472, sz= screenW*0.0039, wy= screenH*0.3472, pos="y+" },
{ x= screenW*0.1563, y= screenH*0.6875, sz= screenW*0.5938, wy= screenH*0...
124. Praca dorywcza
Client:
[lua]local sraczkowatyBlip
local sraczkowatyPikap
local sraczkowateAuto
local sraczkaCzescNext
local sraczkowateXd

local copryight="sraczkowatyFCserwer"
local autor="Kuksisko"

local function sraczkowatyFiniszPracy(missionValue)
if isElement(sraczkowatyBlip) then
destroyElement(sraczkowatyBlip)
sraczkowatyBlip=nil
end
if isElement(sraczkowatyMarker) then
destroyElement(sraczkowatyMarker)
sraczkowatyMarker=nil
end
if missionValue then
setElementData(localPlayer,"player:job",false)
triggerServerEvent("mower:stopJOB", localPlayer, sraczkowateAuto)
sraczkowateAuto=nil
sraczkowatyMarker=nil
sraczkowatyBlip=nil
end
end

addEventHandler("onClientVehicleExit",root,function (plr,seat)
if plr == localPlayer and seat == 0 and source == sraczkowateAuto then
local vh = sraczkowateAuto
sraczkowatyFiniszPracy(sraczkowateAuto)
end
end)

function showMarker()
el=localPlayer
veh=getPedOccupiedVehicle(el)
if not getPedOccupiedVehicle(el) then return end
if getVehicleController(veh) == el then
sraczkowatyMarker=createMarker(-74.62537, 1203.48425, 19.74219, "checkpoint", 3, 0, 71, 255 )
sraczkowatyBlip=createBlipAttachedTo(sraczkowatyMarker, 12)
addEventHandler("onClientMarkerHit", sraczkowatyMarker, function(el,md)
if el~=localPla...
125. Praca dorywcza
Client:
[lua]local sraczkowatyBlip
local sraczkowatyPikap
local sraczkowateAuto
local sraczkaCzescNext
local sraczkowateXd

local copryight="sraczkowatyFCserwer"
local autor="Kuksisko"

local function sraczkowatyFiniszPracy(missionValue)
if isElement(sraczkowatyBlip) then
destroyElement(sraczkowatyBlip)
sraczkowatyBlip=nil
end
if isElement(sraczkowatyMarker) then
destroyElement(sraczkowatyMarker)
sraczkowatyMarker=nil
end
if missionValue then
setElementData(localPlayer,"player:job",false)
triggerServerEvent("mower:stopJOB", localPlayer, sraczkowateAuto)
sraczkowateAuto=nil
sraczkowatyMarker=nil
sraczkowatyBlip=nil
end
end

addEventHandler("onClientVehicleExit",root,function (plr,seat)
if plr == localPlayer and seat == 0 and source == sraczkowateAuto then
local vh = sraczkowateAuto
sraczkowatyFiniszPracy(sraczkowateAuto)
end
end)

function showMarker()
el=localPlayer
veh=getPedOccupiedVehicle(el)
if not getPedOccupiedVehicle(el) then return end
if getVehicleController(veh) == el then
sraczkowatyMarker=createMarker(-74.62537, 1203.48425, 19.74219, "checkpoint", 3, 0, 71, 255 )
sraczkowatyBlip=createBlipAttachedTo(sraczkowatyMarker, 12)
addEventHandler("onClientMarkerHit", sraczkowatyMarker, function(el,md)
if el~=localPla...
126. Praca dorywcza
Client:
[lua]local marker = createMarker(87.25388, 1183.62219, 18.66406 - 2.4, "cylinder", 2, 102, 72, 225)

local wm={}
wm.window=guiCreateWindow(0.25, 0.26, 0.51, 0.42, "Praca dorywcza", true)
guiWindowSetSizable(wm.window, false)
guiWindowSetMovable(wm.window, false)
guiSetVisible(wm.window, false)
wm.elo=guiCreateLabel(0.02,0.1,0.94,0.92,"Egzampul egzampul",true,wm.window)
wm.button=guiCreateButton(0.57, 0.75, 0.39, 0.20, "Rozpocznij prac?!", true, wm.window)
wm.exit=guiCreateButton(0.040, 0.75, 0.39, 0.20, "Zamknij", true, wm.window)

addEventHandler("onClientMarkerHit",marker,function(el,md)
if not md or el~=localPlayer then return end
if guiGetVisible(wm.window) == false then
guiSetVisible(wm.window, true)
showCursor(true)
end
end)

function if2()
if guiGetVisible(wm.window) == true then
guiSetVisible(wm.window, false)
showCursor(false)
end
end
addEventHandler("onClientGUIClick", wm.button, if2)

function greetingCommand ( commandName )
triggerServerEvent("onTrigger", resourceRoot)
end
addEventHandler ( "onClientGUIClick", wm.button, greetingCommand )

function if3()
if guiGetVisible(wm.window) == true then
guiSetVisible(wm.window, false)
showCursor(false)
end
end
addEventHandler("onClientGUIClick", wm.exit, if3)

--wazniejsze

m1,b1 = nil

function usunblip()
destroyElement(b1)
...
127. Praca OSP w urzędzie
Witam mam problem gdy? zrobi?em Prac? OSP w urz?dzie wszystko dzia?a skiny itp ale mam jeden problem mianowicie nie wiem jak doda? pojazdy dla cz?onk?w tej pracy.. m?g? by kto? pom?c? praca jest robiona przez baz? danych tzn ogrpg-offices prosi? bym o pomoc
128. Praca Sweepry
Witam , mam problem, gdy? mam prace sweepera, kt?ry jest prawie na ka?dym serwerze tak? sam? jak na Its Your World. Liczy ona po 1 kg, a ja chcia?bym zrobi? ?eby liczy?o po 0.01 kg . Jak to zrobi? ?


Za pomoc piwko i respekt

CLIENT:
[lua]local czas = getTickCount()

function speeed(car)
local a1,b1,c1 = getElementVelocity(car)
local fast = ((a1^2+b1^2+c1^2)^(0.5) *180)
return fast
end
local code="Sweepers" -- kod pracy
tekstury = {
[0] = true,
[1] = true,
[2] = true,
}

function render(pojazd)
local x,y,z = getElementPosition(pojazd)
fxAddWaterSplash (x,y,z-1.9)
if (getTickCount() - czas) < 6000 then return end
czas = getTickCount()
--if (not isVehicleOnGround(pojazd)) then outputDebugString("ground FALSE") return end
if speeed(pojazd) < 30 then return end
ziemia = getGroundPosition(x,y,z) - 0.001
hit,_,_,_,_,_,_,_,material,_,target = processLineOfSight (x,y,z, x, y, ziemia,true, false, true, true, false, true )
if hit == false then
--outputDebugString("HIT FALSE")
return end
if (not tekstury[material]) then
--outputDebugString("MATERIAL FALSE")
return end
local smiecie = getElementData(pojazd,"vehicle:trash")
local kg = math.random(0.8,1.2)
if not getElementData(localPlayer,"player:premium") then
limit = 200
else
limit = 250
end
if smiecie >= limit then return end
setElementData(pojazd,"vehicle:trash",smiecie+kg)

setElementData(pojazd,"veh...
129. Praca Złodzieja
Witam mam problem napisa?em ten skrypt ale nie dza?a nic nie pokazuje ani blipu ani Markeru :/

[lua]
createBlip(1043.85,-1105.89,23.83, 46,2,0,0,0,0,0,275)

local praca = createMarker(1043.85,-1105.89,23.83, "cylinder", 2.0, 255, 0, 0, 0)

local baza = {
{-1047.20,-1081.36,23.83},
{-1047.20,-1081.36,23.83},
{-1047.20,-1081.36,23.83},
{-1047.20,-1081.36,23.83},
{-1047.20,-1081.36,23.83},

}

local miejscaelektryk = {
{-2765.27,375.17,6.34},
{-2765.27,375.17,6.34},
{-2765.27,375.17,6.34},
{-2765.27,375.17,6.34},

}

addEventHandler("onClientMarkerHit", praca, function(el, md)
if not md or getElementType(el) ~= "player" then return end
if el ~= localPlayer then return end
outputChatBox("* Zarobki pracy: 1576 Z?")
outputChatBox("* Aby rozpocz?? prac? wci?nij 'E'")
end)


bindKey("e", "down", function()
if not isElementWithinMarker(localPlayer, praca) then return end
if not getElementData(localPlayer, "gracz_praca") then
local losuj = math.random(2, #miejscaelektryk)
setElementData(localPlayer, "gracz_praca", true)
outputChatBox("* Jedz do Celu Oznaczonym Liter? C i go Okradnij nast?pnie Wru? do bazy!.")

local cel = createMarker(miejscaelektryk[losuj][1], miejscaelektryk[losuj][2], miejscaelektryk[losuj][3]-1.0, "checkpoint", 1.0, 255, 0, 0)
local blip = creat...
130. Praca
Witam, chcia? bym ?eby w pracy sweppery na sweeperze by?a wy?wietlana ilo?? zebranych ?mieci. Za pomoc stawiam :piwo:
c_job
[lua]
local czas = getTickCount()

function speeed(car)
local a1,b1,c1 = getElementVelocity(car)
local fast = ((a1^2+b1^2+c1^2)^(0.5) *180)
return fast
end

tekstury = {
[0] = true,
[1] = true,
[2] = true,
}

function render(pojazd)
if (getTickCount() - czas) < 2500 then return end
czas = getTickCount()
if (not isVehicleOnGround(pojazd)) then return end
if speeed(pojazd) < 30 then return end
x,y,z = getElementPosition(pojazd)
ziemia = getGroundPosition(x,y,z) - 0.001
hit,_,_,_,_,_,_,_,material,_,target = processLineOfSight (x,y,z, x, y, ziemia,true, false, true, true, false, true )
if hit == false then return end

if (not tekstury[material]) then return end
local smiecie = getElementData(pojazd,"vehicle:trash")
local kg = math.random(0.3,0.8)
setElementData(pojazd,"vehicle:trash",smiecie+kg)
setElementData(pojazd,"vehicle:desc","Nape?nienie zbiornika : ["..smiecie.." kg]")
end
local function shit()
local pojazd = getPedOccupiedVehicle(localPlayer)
if not pojazd then return end
if not getVehicleEngineState(pojazd) then return end
if speeed(pojazd) < 2 then
toggleControl ("brake_reverse", false )
else
toggleControl ("brake_reverse", true )
end
render(pojazd)
end



addEventHandler("onClientVehicleEnter", getRootEleme...
131. Premium i Praca
Wiem ,?e kto? ju? kiedy? rozpocz?? ten temat lecz nie zosta? on rozwi?zany.
Mam problem z premium w pracach.
B??d w DB3
Ot?? wywala w db3 ten b??d i nie dzia?a nic.
Dodam, ?e to jest po stronie clienta:

bindKey
("e""down", function()
    if 
not isElementWithinMarker(localPlayerpracathen return end
    
if not exports["premium"]:isPremium(localplayerthen
    
return
    
end

Stawiam :piwo: i daj? R*
132. Praca
Witam , chc? zrobi? prac? kt?ra b?dzie polega?a na przechodzeniu z punktu w punkt i si? dostaje kas? tylko jakiej funkcji u?y? . Prosz? o pomoc :)
133. Praca i kasa
Cze?? wszystkim !

Drodzy u?ytkownicy GTAO.PL mam taki problem i? mam prace niekt?re z YA i mam
te prace niekt?re jak napisa?em wy?ej. Bo na tym serwerze dawnym YA co by? przed ITS to daje kasae do bankomatu za 1 pkt na pracy streetview. No i jak to zrobi? zeby nie dawa?o kasy do bankomatu tylko odrazu na konto gracza za pomoc daje 5 :piwo: I R*

Praca StreetView :
Kod z strony Clienta :
[lua]
--[[
Praca busa

]]--
local code = "StreetView"
local districtsBus = {

{2467.59,-1729.61,12.90},
{2434.20,-1664.15,25.05},
{2433.48,-1459.84,23.34},
{2341.13,-1380.98,23.35},
{2099.35,-1381.12,23.35},
{2073.41,-1247.81,23.34},
{2161.84,-1224.48,23.34},
{2372.89,-1156.75,26.97},
{2667.25,-1157.26,52.83},
{2871.18,-1198.94,10.40},
{2898.06,-1505.07,10.39},
{2847.69,-1679.34,10.39},
{2821.14,-1900.94,10.46},
{2692.69,-2152.78,10.43},
{2260.25,-2222.39,12.83},
{1975.36,-2107.68,12.89},
{1964.12,-1901.65,12.90},
{2005.56,-1754.56,12.90},
{2211.57,-1734.02,12.91},
{2375.42,-1735.23,12.90},
{2495.86,-1750.82,12.99},
}
local jobTarget
local jobMarker
local jobVehicle
local maxTarget = #districtsBus

function finishJob()
if jobMarker and isElement(jobMarker) then
destroyElement(jobMarker)
jobMarker = nil
end

if jobTarget and isElement(jobTarget) then
destroyElement(jobTarget)
jobTarget = nil
jobTarget = 0

end
if getElementData(localPlayer,"player:job&qu...
134. Praca Betoniarki
Witam was po raz kolejny . Tym razem chc? zrobic Prac? Betoniarki . Ma to polega? na tym ?e bierze si? auto kt?re si? respi? w wyznaczonych miejscach . Potem wje?dzamy do markera aby za?adowa? beton i na mapie jest drugi marker do kt?rego trzeba si? udac wci?? w tym samym miejscu . I tak w k??ko a auto zniknie dopiero jak sie wysi?dzie .
Jezeli mo?na to chcia?bym o podanie funkcji i kt?re maj? byc po stronie clienta a kt?re po stronie serwera .
Dzi?kuje wszystkim za pomoc :) . Mi?ej Nocy .
135. BUG - Praca Autobusu
Witam mam problem z praca autobusu - Gdy w??czam salon panaPrezesa a na nast?pnie wejd? do markeru pracy autobusu to pojawia mi sie na chwile pojazd a pozniej znika + Gdy zniknie pojazd pojawia sie ze Zako?czy?em prace.
Prosze o szybk? pomoc postawiam piwko :piwo: :piwo:
136. Praca
Witam mam problem z prac? kuriera, gdy do jedziemy do punktu to na chacie pisze ?e Zarobi?e? 35 ale nie daje nam pieni?dzy. Za pomoc stawiam :piwo: i R*

Link do pracy: http://www113.zippyshare.com/v/5WWHkert/file.html

[lua]zone = {}
table.insert(zone,1,createColSphere(-2170,-213,35.2,2))
table.insert(zone,2,createColSphere(-2170.89,-219.99,34.84,2))


miejscarozladunku = {
{2101.75,2671.19,10.81}, ---- tu dodajemy miejsca poprostu skopiuj linijke i wstaw podmieniajac kordy x,y,z ;)
{2264.12,2738.32,10.82},
{2483.38,1946.33,10.17},
{1705.82,997.99,10.82},
{777.88,1879.80,4.96},
}

controlTable = { "forwards", "backwards", "left", "right", "jump", "sprint", "enter_exit", } --- blokada przyciskow ze wzgledu i? setElementFrozen buguje przy attachu :3

money = 35 --- ilosc pieniedzy jakie dostajemy za 1 paczke





--Auto ma byc 1
vehiclePos = {
{499,1461.88, 979.09, 10.65, 4.2, 0.1, 358.5},
}[/lua]

[lua]addEvent("kurier:start",true)
addEventHandler("kurier:start",resourceRoot,function(plr)
if not plr then return end
if not getElementData(plr,"job:vehicle") then


outputChatBox("*Zaczales prace kuriera",plr)
setElementData(plr,"player:job",true)

--auto
local v = vehiclePos
local rol = math.random(1,#vehiclePos)
local checkzone = getElementsWithinColShape ( zone[rol], "vehicle" )
if #checkzone ~= 0 ...
137. [SKRYPT] Praca - kierowca lawety
Witaj
!
Przedstawiam Ci skrypt, kt?rego napisanie nie zaj??o mi du?o czasu.
Mianowicie - jest to praca kierowcy lawety (jak kto woli - "laweciarza").
Prac? rozpoczynamy za salonem pojazd?w w SF - wchodzimy w marker, jedziemy do celu, wracamy i cieszymy si? naszymi nowymi na koncie $.

Na razie tras oraz pojazd?w na lawecie jest niezbyt du?o, zawsze mo?ecie dopisa? do tabeli.
Jest komentarz, jak doda? swoje w?asne miejsca/usun??/poprawi? (edytowa?).

! Je?eli zauwa?y?e?/a? problem odno?nie dzia?ania skryptu, napisz o tym. Postaram si? to jak najszybciej poprawi? :eye:

Screenshoty z jednej "trasy": http://imgur.com/a/MxwmT

Link:
Ukryta wiadomość / Hidden message(aby ją zobaczyć musisz postawić użytkownikowi)
Wiadomość została ukryta, aby ją przeczytać należy się zalogować.


Pozdrawiam, ora? ?ycz? mi?ego u?ytkowania - Emm.
138. [SKRYPT] Praca roznoszenie ulotek
Witam, chcia?bym wam udost?pni? przerobiony przeze mnie skrypt Emm'a.
Podstawowo to by? kelner, lecz ja to przerobi?em w roznoszenie ulotek dodam, ?e praca znajduje si? w Montgomery.

SS:

Link do skryptu:
Ukryta wiadomość / Hidden message(aby ją zobaczyć musisz postawić użytkownikowi)
Wiadomość została ukryta, aby ją przeczytać należy się zalogować.


EDIT: Zdj?cie poprawione
139. Praca
Witam, mam b??d z prac?! Gdy daje isPedInVehicle/isPlayerInVehicle to nic sie nie dzieje i dalej moge wjezdzac w marker gdy jestem w pojezdzie i rozpoczac prace..

-- O P C J E -- 
Gornik_rozp createMarker(2252.06,-793.73,127.11,"cylinder",5,25,69,178,150setElementData(Gornik_rozp,"marker_opis","Praca dorywczanG?rnik") -- Marker rozpocz?cia pracy
Gornik_blip 
createBlipAttachedTo(Gornik_rozp,52) -- Blip
Gornik_woz 
554 -- Auto kt?rym b?dzie sijecha?
Gornik_skala 3930

addCommandHandler
("dezG",
    function (
plr)
        
setElementData(plr,"pracaG",false)
    
end
)


-- 
S K R Y P T  --

addEventHandler("onMarkerHit",Gornik_rozp,
    function(
plr)
        if 
getElementData(plr,"pracaG"then return end
        setElementData
(plr,"pracaG",true)
        
local v createVehicle(Gornik_woz,2251.70,-786.89,128.07,348.2,3.7,126.2)
        
setElementData(v,"pojazd_opis","Praca dorywczanG?rnik")
        
setElementData(v,"pojazd_paliwo",100)
        
warpPedIntoVehicle(plr,v)
        
local skala createObject(Gornik_skala,0,0,0)
        
attachElements(skala,v,0,-2,0.5)
    
end
)
140. Praca nie działa
Witam pomocy nie wiem czemu nie dzia?a . Wgra?em kawa?ek kodu od mlodyasnygo i markery mi znikly i opisu na aucie dalej niema.
c-side
[lua]
function finishJob()
if jobMarker and isElement(jobMarker) then
destroyElement(jobMarker)
jobMarker = nil
end
if jobBlip and isElement(jobBlip) then
destroyElement(jobBlip)
jobBlip = nil
end
end

function hideNextPoint(el, md)
if el ~= localPlayer or not md then return end
if not getPedOccupiedVehicle(el) then return end
local pojazd = getPedOccupiedVehicle(el)
if not getElementData(pojazd, "pojazd_smieci") then setElementData(pojazd, "pojazd_smieci", 100)
end

if getElementData(pojazd, "pojazd_smieci") > 100 then
outputChatBox("* Posiadasz 100% ropy, odwie? je.")
return
end

local smieci = getElementData(pojazd, "pojazd_smieci") + math.random(10, 23)

finishJob()
showNextPoint()
playSoundFrontEnd(12)
setElementData(pojazd, "pojazd_smieci", smieci)
setElementData(pojazd, "pojazd_opis", "Ropa: "..smieci.."%")
end


function showNextPoint()
jobRandom = math.random(1, #positionTrash)

jobMarker = createMarker(positionTrash[jobRandom][1], positionTrash[jobRandom][2], positionTrash[jobRandom][3], "checkpoint", 4, 0, 0, 255)
jobBlip = createBlipAttachedTo(jobMarker, 41)
...
141. Praca nie działa
Witam pom??cie bo na pojezdzie nie pokazuje napisu Paliwo 0%
I sprawdzcie czy kod dobry :)

local smieci 
getElementData(pojazd"pojazd_smieci") + math.random(1023)
    
    
finishJob()
    
showNextPoint()
    
playSoundFrontEnd(12)
    
setElementData(pojazd"pojazd_smieci"smieci)
    
setElementData(pojazd"pojazd_opis""Ropa: "..smieci.."%")
end

addEventHandler
("onClientMarkerHit"jobOdbieranie, function(elmd)
    if 
not md or getElementType(el) ~= "player" then return end
    
if el ~= localPlayer then return end
    
if not getPedOccupiedVehicle(elthen return end
    local pojazd 
getPedOccupiedVehicle(el)
    if 
getElementData(pojazd"pojazd_smieci") and tonumber(60) <= getElementData(pojazd"pojazd_smieci"then
        smieci 
getElementData(pojazd"pojazd_smieci") * 0.5
        
        setElementData
(pojazd"pojazd_smieci"0)
        
triggerServerEvent("giveMoney"elsmieci1)
        
setElementData(pojazd"pojazd_opis""Paliwo: 0%")
    else
        
outputChatBox("* Nie posiadasz min. 80% ropy")
    
end
end
)
142. Praca Smieciarek
Witam chcia?bym napisa? prace smieciarek ale niewiem jakis u?y? po kolei funkcji . Pomo?ecie ?:D
143. Praca nie daje pieniędzy...
Cze??.

Znalaz?em skrypt testuj?c go na lokalnym, zauwa?y?em ?e on nie daje pieni?dzy za zrobienie przejazdu busem.

Tutaj kawa?ek kodu zawieraj?cego dawanie graczowi kwoty pieni??nej:

Kod:

outputChatBox("** Rozpocz??e?/a? prac? spedytora, przetransportuj skrzynki do danego celu. ")
else
showMarker()
playSoundFrontEnd(12)
triggerServerEvent("givePlayerMoney", localPlayer, 79, 0)
end
end


Prosz? o pomoc, za poprawienie kodu stawiam zimnego browara oraz respekt. :)

Pozdrawiam :D
144. Praca
Witam, potrzebuje kod?w na tpanie to pojazdu, tworzenie marker?w tylko dla 1 gracza. I jak to podpi?c po clienta, jak gracz wejdzie do pojazdu?
145. Praca dorywacza smieciarki ;)
Witam siemka elo mam b?ad z moj? prac? na smieciarki :( A b??d jest w 37 linijce cos z smieciami ;(

[lua]local markery = {
{-2216.55,-102.63,35.81},
{-2285.86,32.77,35.31},
{-2195.74,185.86,35.32},
{-1866.60,-139.37,11.90},
{-2288.44,-123.57,35.32},
{-2129.03,253.21,35.42},
{-2079.25,765.95,69.56},
{-2081.60,840.06,69.56},
{-2055.92,1139.46,45.45},
{-1807.47,802.27,27.86},
{-1856.06,585.33,35.16},
{-1823.40,429.99,17.52},
}

local wysypiska = {
{-2077.47,-155.21,35.32},
{-2053.43,-113.47,35.29},
}


addEvent("startSMIECI",true)
addEventHandler("startSMIECI",root,
function ()
for i,v in ipairs(markery) do
local marker = createMarker(v[1],v[2],v[3],"checkpoint",4,0,0,255,255)
addEvent("stopSMIECI",true)
addEventHandler("stopSMIECI",root,
function ()
destroyElement(marker)
end
)
addEventHandler("onClientMarkerHit",marker,
function ()
local veh = getPedOccupiedVehicle(localPlayer)
smieci = getElementData(veh,"zapelenienie")
smieci = smieci + 12
setElementData(veh,"zapelnienie",smieci)
setElementData(veh,"pojazd_opis","Zape?nienie: "..smieci.."%")
destroyElement(source)
end
)
end
for i,v in ipairs(wysypiska) do
local wysyp = createMarker(v[1],v[2],v[3],"checkpoint",4,255,0,0,255)
addEvent("stopSMIECI",true)
addEventHandler("stopSMIECI",root,
function ()
destr...
146. Praca dorywcza - pizzaboy
Witam, m?cz? si? takim kodem:

[code]--// praca dorywcza

--//Tables and other stuff
tableLocationsX = {}
tableLocationsY = {}
tableLocationsZ = {}

tableMoney = {}
locationCount = 3

--//Location 1
tableLocationsX[1] = 1980.99841
tableLocationsY[1] = -1682.89551
tableLocationsZ[1] = 17.05380

tableMoney[1] = 16

--//Location 2
tableLocationsX[2] = 2067.69800
tableLocationsY[2] = -1629.03101
tableLocationsZ[2] = 14.20663

tableMoney[2] = 19

--//Location3
tableLocationsX[3] = 2065.10449
tableLocationsY[3] = -1703.51208
tableLocationsZ[3] = 14.14844

tableMoney[3] = 25

function startScript ()
--Marker
marker = createMarker (2097.91406, -1820.95154, 12.38281, "cylinder", 2.0, 255, 0, 0)
addEventHandler ("onMarkerHit", marker, startMission)
--Objects and Ped
ped = createPed (302, 2776.7, -2428.1, 13.6)
tableObj = createObject (2205, 2775.9, -2426.8, 12.6)
chairObj = createObject (2309, 2776.7, -2427.4, 12.6)
addEventHandler ("onPedWasted", getRootElement(), respawnPed)
--Blip
startBlip = createBlip (2097.91406, -1820.95154, 12.38281, 52)
end

function startMission (hitElement)
if getElementType (hitElement) == "player" then
--Check team
-- local team = getPlayerTeam (hitElement)
-- if getTeamName (team) ~= "Workers" then
-- local teamName = getTeamName (team)
-- outputChatBox ("#ffaa00// #ffffffOnly workers can drive trucks! Press F2 to change the te...
147. [SKRYPT] [RPG] Praca myśliwego
Przedstawiam wam skrypt na serwery RPG o nazwie my?liwy

Praca znajduje si? na g?rce pomi?dzy LS a LV
Polega on na zabijaniu w lesie zwierz?t kt?re si? pojawiaj? losowo w 25 miejscach

Za ka?dy rodzaj zabitego zwierzaka otrzymuje si? 50$
Za strzelenie w innego gracza, traci si? 2000$ oraz prac?.
Za strzelenie w pojazd traci si? 1000$ oraz prac?.

W Skrypcie s? wbudowane podmianki zwierz?t
Praca zawiera r?wnie? logi kto kogo zabi?, zapisuj? si? w g??wnym pliku z logami z tagiem:
MYSLIWYZABIJANIEPOJAZD - je?eli gracz trafi pojazd
MYSLIWYZABIJANIE - je?li gracz trafi gracza



Ukryta wiadomość / Hidden message(aby ją zobaczyć musisz postawić użytkownikowi)
Wiadomość została ukryta, aby ją przeczytać należy się zalogować.
148. Praca busa
Witam ponownie, posiadam prace busa jednakze napotka? mnie pewien b??d, ot?? nie pokazuje markera..
Kod:
[lua]local districtsBus = {
{x,y,z},



}

addEvent("givePlayerMoney", true)
addEventHandler("givePlayerMoney", resourceRoot, function()
givePlayerMoney (localPlayer, 2)
end)

local jobTarget
local jobMarker
local jobVehicle
local maxTarget = #districtsBus

function finishJob()
if jobMarker and isElement(jobMarker) then
destroyElement(jobMarker)
jobMarker = nil
end

if jobTarget and isElement(jobTarget) then
destroyElement(jobTarget)
jobTarget = nil
jobTarget = 0

end

triggerServerEvent("destroyVeh",resourceRoot,jobVehicle)
end


function busDriver(el, md)
if el ~= localPlayer or not md then return end
if jobTarget > maxTarget and getPedOccupiedVehicle(el) then return end
if jobTarget == maxTarget and not getPedOccupiedVehicle(el) then return end

if jobTarget == #districtsBus then
finishJob()
playSoundFrontEnd(5)
outputChatBox("* Zako?czy?e?/a? prac?.")
else
showMarker()
playSoundFrontEnd(12)
givePlayerMoney (20)
end
end

function showMarker()
if jobMarker and isElement(jobMarker) then
destroyElement(jobMarker)
jobMarker = nil
end

jobTarget = jobTarget + 1
jobMarker = createMarker(...
149. Praca Ropy - Marker
Witam, mam problem w ostatniej linijce z 2 argumentem. Pomo?ecie ?

[lua]local marker = createMarker(642.66235, 1238.53381, 10.66666, "cylinder", 2, 0, 0, 255, 200)

okno = guiCreateWindow(753, 244, 408, 594, "Praca Przewo?nika Ropy", false)
guiWindowSetSizable(okno, false)

opis = guiCreateMemo(9, 25, 389, 365, "Praca polega na dowo?eniu paliwa na stacji poprzez wydobycie i za?adowanie do auta ropy, prze?adunek ropy z samochodu do poci?gu, przew?z paliwa poci?giem do Koncernu Naftowego, ponowny przyjazd do zbiornika z rop? i przew?z przerobionej ropy na benzyne do stacji paliw. Za jeden taki kurs dostaje si? od 90 do 110 $, a tak?e wzbogaca si? dystrybutor z paliwem od 150 do 300 litr?w paliwa.", false, okno)
guiMemoSetReadOnly(opis, true)
btnzat = guiCreateButton(11, 405, 387, 59, "Zatrudnij si?", false, okno)
btnzwol = guiCreateButton(11, 483, 387, 63, "Zwolnij si?", false, okno)
zamknij = guiCreateButton(347, 564, 51, 20, "X", false, okno)
guiSetVisible(okno, false)

function showGUI(hitElement)
if getElementType(hitElement) == "player" and (hitElement == localPlayer) then
if not guiGetVisible(okno) then
if not getPedOccupiedVehicle(localPlayer) then
guiSetVisible(okno, true)
showCursor(true)
end
end
end
end
addEventHandler("onClientMarkerHit", marker, showGUI)

function hideGUI()
guiSetVisible(okno, false)
showCurs...
150. Praca jak dalej
Witam mam proble nie pokazuj? mi si? markery pracy db
ERROR: Server triggered clientside event start, but event is not added clientside

kod:
s

triggerClientEvent
("start"rootlocalPlayer)

c

local target 
1
trasa 
= {
{-
2045.60,-78.37,35.22},
{-
2021.85,-71.71,35.21}
}

function 
start(plr)
local x,y,trasa[target]
marker createMarker(x,y,z"checkpoint"3255,0,0)
addEventHandler("onClientMarkerHit"marker, function(he,md)
addEvent("start"true)
addEventHandler("start"getRootElement())
end)
end
151. Praca Spedytor
Witam robie prace dorywcza i mam problem, jezeli wjade w marker to nic sie niedzieje

[lua] rozpocznijspedytor = createMarker (1121.35,-1246.58,15.09,"cylinder",3.0,0,255,255,255)
addEvent("rozpocznijprace",true)

function zresp ( player )
local auto = createVehicle (499,1106.56,-1249.39,15.91,0.0,360.0,3.6)
setElementData(auto, "pojazd_wsiadaj",true)
setElementData ( auto, "pojazd_paliwo", 50 )
setElementData ( auto, "pojazd_opis", "Praca dorywcza - Spedytor " )
setVehiclePlateText(auto, "Spedytor")
warpPedIntoVehicle ( player , auto, 0 )
outputChatBox ("Praca dorywcza - Spedytor ",player,0,200,0)
end
addEventHandler("rozpocznijprace",root,zresp)

addEventHandler("onMarkerHit",rozpocznijspedytor,function(player)
if isElementWithinMarker(player,rozpocznijspedytor) then
triggerClientEvent(player,"pokazoknopracy",root)
end
end)

local punkty = {
{321.15,-1775.28,4.12},
{862.37,-1793.81,13.17},
{1358.18,-1753.69,12.67},
{1848.02,-1757.15,12.74},
{2495.34,-1753.75,12.79},
{2757.16,-1943.38,12.86},
{2855.11,-1341.69,10.37},
}

function markery (player)
local pkt = punkty[math.random(1, #punkty)]
cel = createMarker(pkt[1], pkt[2], pkt[3], "checkpoint",4.0, 123, 225, 56, 150,player)
blip = createBlipAttachedTo(cel, 51,2,255,0,0,255,0,99999.0,player)
end
a...
152. Praca dorywcza.
Witam was. Juz pisalem to wczesniej ale nikt nie pomogl. Chodzi mi aby markery i blipy byly robione dla jednej osoby
[color=orange]server : [/color]
[lua]
marker = createMarker (-208.78,1221.14,19.0,"cylinder",1.0,0,200,0,255)
ped = createPed (16,-208.82,1220.29,19.89)

function zresp ( player )
local auto = createVehicle (552,-194.61,1224.06,19.43,359.1,0.0,180.2)
setElementData ( auto, "pojazd_paliwo", 50 )
setElementData ( auto, "pojazd_opis", "Praca dorywcza - ?atanie dziur " )
warpPedIntoVehicle ( player , auto, 0 )
outputChatBox (" ",player,0,200,0)
outputChatBox ("Praca dorywcza - ?atanie dziur ",player,0,200,0)
outputChatBox (" ",player,0,200,0)
end
addEventHandler ("onMarkerHit",marker,zresp)

local punkty = {
{-171.24487304688, 1096.1301269531, 19.606197357178},
{30.913167953491, 1119.8073730469, 19.623331069946},
{-91.321762084961, 1200.033203125, 19.619775772095},
{-112.26300811768, 1169.1364746094, 19.603679656982},
{-187.25840759277, 1025.6124267578, 19.60319519043},
{-218.66180419922, 1003.6341552734, 19.698823928833},
{-294.93395996094, 1064.3399658203, 19.611391067505},
{-343.91772460938, 1122.2767333984, 19.606252670288},
{-340.33258056641, 1167.6424560547, 19.738605499268},
}

function markery (player)
local pkt = punkty[math.random(1, #punkty)]
marker = createMarker(pkt[1], pkt[2], pkt[3], "checkpoint",2.0, 123, 225, 56, 1...
153. Praca
cos mi tu nie pyka bo hajsu nie dostaje ;(
[lua]local praca = createMarker( 2524.33,-1298.10,1030.70, "cylinder", 2.0, 255, 96, 0, 100)
-- local pracaablip = createBlip(2472.45361, -1522.77454, 24.23447, 52)
local blip = createBlip(2193.31,2789.94,10.82, 52, 2)
setElementInterior(praca, 2)

local miejscaelektryk = {
{2543.44,-1301.67,1031.42},
{2544.71,-1293.26,1031.42},
{2534.21,-1290.72,1031.42},
{2563.46,-1291.90,1031.42},
}

addEventHandler("onClientMarkerHit", praca, function(el, md)
if not md or getElementType(el) ~= "player" then return end
if el ~= localPlayer then return end
outputChatBox("* Praca by BlackTen")
outputChatBox("* Aby rozpocz?? prac? wci?nij 'M'")
end)


bindKey("m", "down", function()
if not isElementWithinMarker(localPlayer, praca) then return end
if not getElementData(localPlayer, "gracz_praca") then
local losuj = math.random(2, #miejscaelektryk)
setElementData(localPlayer, "gracz_praca", true)
setPedAnimation ( localPlayer, "CARRY", "crry_prtial", 1,true )
local skrzynia = createObject(1271, 0, 0, 0)
setElementInterior(skrzynia, 2)
attachElements ( skrzynia, localPlayer, 0, 0.8, 0.5)

local cel = createMarker(miejscaelektryk[losuj][1], miejscaelektryk[losuj][2], miejscaelektryk[losuj][3]-1.0, "checkpoint...
154. Praca Dorywcza
[lua]
--[[
Praca busa

@copyright 2013-2014 Split <[email protected]>
@author Split <[email protected]>
@version 1.0 beta
@changelog:
* Poprawiono prac?.

Nie masz prawa u?ywac tego kodu bez mojej zgody.
Napisz do mnie by? mo?e si? zgodz? na u?ycie kodu.
]]--
local districtsBus = {

{365.1037902832, 2535.1870117188, 28.978340148926},
{332.31658935547, 2493.296875, 41.081680297852},
{301.78073120117, 2427.9694824219, 60.128322601318},
{272.986328125, 2365.1137695313, 78.775672912598},
{240.82670593262, 2299.0495605469, 88.779518127441},
{195.92169189453, 2198.2749023438, 106.62964630127},
{148.11741638184, 2079.39453125, 121.19399261475},
{71.565788269043, 1878.9143066406, 137.08000183105},
{23.038728713989, 1743.6721191406, 157.64511108398},
{-8.123215675354, 1651.3896484375, 158.23648071289},
{-96.989768981934, 1383.0947265625, 145.01481628418},
{-135.19259643555, 1258.9887695313, 137.48251342773},
{-182.58676147461, 1098.1326904297, 124.80664825439},
{-182.58755493164, 990.39410400391, 126.6547088623},
{-107.2110748291, 931.13787841797, 137.63739013672},
{-3.0844504833221, 971.85510253906, 148.95761108398},
{57.474384307861, 1075.6530761719, 142.88092041016},
{90.087326049805, 1299.9056396484, 109.51367950439},
{113.49279022217, 1452.0389404297, 111.97846984863},
{195.57073974609, 1876.6184082031, 114.44400787354},
{253.78149414063, 2128.2270507813, 103.76750946045},
{309.42895507813, 2343.7844238281, 92.6...
155. Praca sweeper
Witam co jest ?le bo nie tworz? si? markery ;(

Server
[lua]
createBlip (-2749.2126464844, -282.72048950195, 7.0390625, 52, 2)

local m1 = createMarker(-2749.2126464844, -282.72048950195, 7.0390625, "cylinder", 2.0, 0, 0, 255)
vehs = {}


function removePreviousVehicles(plr)
for i,v in ipairs(getElementsByType("vehicle", resourceRoot)) do
local sby = getElementData(v, "zrespilGracz")
if sby and sby == plr and getPedOccupiedVehicle(plr) ~= v then
destroyElement(v)
end
end
end

addEventHandler("onMarkerHit", m1, function(el, md)
if getElementData(el, "zrespilGracz") then
outputChatBox("Praca w trakcie przygotowania.", el)
return
end

if not md or getElementType(el) ~= "player" or getPedOccupiedVehicle(el) then return end

local x,y,z = getElementPosition(el)
local bus = createVehicle(574, x,y,z,0.0, 360.0, 269.9)

setElementData(bus, "zrespilGracz", el)
setElementData(bus, "pojazd_paliwo", 50)
setElementData(bus, "pojazd_przebieg", 69696969)

setVehicleHandling(bus,"maxVelocity", 50.00)

warpPedIntoVehicle(el, bus)
removePreviousVehicles(el)
triggerClientEvent(el, "STARTJobBus", resourceRoot, bus)
setVehicleHandling(bus,"maxVelocity", 50,00)

vehs[el] = bus
end)

addEvent("STOPJobBus&quo...
156. Praca dorywcza naliczanie dannego terenu
Witam,
jestem w trakcie robienia pracy koszenia trawnika i chcia?bym zrobi? pewn? rzecz, ale nie wiem jak, wi?c prosz? Was o pomoc :)

Do rzeczy chcia?bym zrobi? ?e jak poruszam si? kosiark? po danym obszarze co jaki? czas wpada mi $ do mojego portfela, oczywi?cie jak si? porusza bo je?li nie to hajsu nie nalicza :)

Kto? wie jak to wykona? b?d? jakich funkcji u?y??
Stawiam :piwo: , a za kod dodatkowo Respa :)
157. Praca
Witam mam problem z praca, dok?adniej poprostu jak wjad? w pierwszy punkt to nie daje kasy jak i w pozosta?e tak samo.

B??d w debugscript : triggered serverside event givePlayerMoney, but event is not added serverside.

O to kod :
Kod:


if jobTarget == #districtsBus then
finishJob()
playSoundFrontEnd(5)
outputChatBox("* Zako?czy?e?/a? prac?.")
else
showMarker()
playSoundFrontEnd(12)
triggerServerEvent("givePlayerMoney", localPlayer, 15, 0)
end
end

function showMarker()
if jobMarker and isElement(jobMarker) then
destroyElement(jobMarker)
jobMarker = nil
end


Za pomoc daje :piwo:
158. praca Shuffle
[lua]local allow_vehs={
[420]=true,
}

local vehs={
{-166.7333984375, 1013.029296875, 19.52188873291},
{-178.064453125, 1013.1181640625, 19.522001266479},
{-166.794921875, 1019.005859375, 19.521606445312},
{-178.0478515625, 1019.0419921875, 19.521175384521},
}

taxi={}

for k,v in ipairs(vehs)do
taxi[k]=createVehicle(420,v[1],v[2],v[3])
setElementData(taxi[k],"vehicle:taxi",true)
end

addEventHandler("onPlayerVehicleEnter",root,function(veh,seat)
if seat==0 then
if allow_vehs[getElementModel(veh)] then
if getElementData(veh,"vehicle:taxi") then
outputChatBox("*Zosta?e?(a?) taks?wkarzem. Dostaniesz informacj? o po?o?eniu klienta po wezwaniu us?ugi.",source,255,255,255)
setElementData(source,"player:taxi",true)
end
end
end
if allow_vehs[getElementModel(veh)] then
if getElementData(veh,"vehicle:taxi") then
setElementData(source,"taxi",false)
end
end
end)

addEventHandler("onPlayerVehicleExit",root,function(veh,seat)
if seat==0 then
if allow_vehs[getElementModel(veh)] then
if getElementData(veh,"vehicle:taxi") then
respawnVehicle(veh)
setElementData(source,"player:taxi",false)
end
end
end
end)



addCommandHandler("taxi",function(plr)
if getElementData(plr,"taxi") then
return outputChatBox("*Zam?wi?e?(a?) ju? us?ug?. Poczekaj cierpliwie na taks?wk?&qu...
159. Tekst praca
function frezeBus(el)
 
local p=getPedOccupiedVehicle(el)
       
outputChatBox("[#0033ffPraca#FFFFFF]#ffff99*Dowioz?e? Pizze.",255,255,255true)
       
setElementFrozen(ptrue)
       
setTimer(setElementFrozen100001pfalse)
       
outputChatBox("[#0033ffPraca#FFFFFF]#ffff99*Pizza Dostarczona. Jedz dalej !!",255,255,255true)
       
end


Mam owy kawa?ek skryptu ale mi nie dzia?a jedna zecz ja bym chcia? aby si? ten tekst

outputChatBox("[#0033ffPraca#FFFFFF]#ffff99*Pizza Dostarczona. Jedz dalej !!",255,255,255true)


wy?wietla? po odmro?eniu pojazdu a nie razem z 1 tekstem

outputChatBox("[#0033ffPraca#FFFFFF]#ffff99*Dowioz?e? Pizze.",255,255,255true)
160. PizzaBoy praca randomowe pozycje
[lua]local districtsPizza = { ---- kordy dostarczania graczy
{-291.1318359375, 1163.7275390625, 19.696998596191},
{-335.0615234375, 1171.697265625, 19.901586532593},
{-320.7666015625, 1163.1123046875, 20.2421875},
{-364.9287109375, 1165.5341796875, 19.7421875},
{-367.416015625, 1145.8359375, 20.235286712646},
{-359.54296875, 1129.7119140625, 19.679533004761},
{-369.2392578125, 1119.2783203125, 20.230415344238},
{-361.92578125, 1104.31640625, 19.749286651611},
{-331.36328125, 1115.37890625, 20.2421875},
{-322.1962890625, 1130.2138671875, 19.83712387085},
{-289.51171875, 1122.337890625, 20.238082885742},
{-304.302734375, 1114.52734375, 19.7421875},
{-260.83984375, 1165.4375, 20.2421875},
{-251.5693359375, 1179.39453125, 19.93016242981},
{-259.517578125, 1156.6357421875, 19.7421875},
{-251.677734375, 1142.8095703125, 20.243007659912},
{-260.6396484375, 1130.6669921875, 19.759662628174},
{-253.7919921875, 1115.990234375, 20.232286453247},
{-248.8818359375, 1083.751953125, 19.902923583984},
{-262.7373046875, 1076.2373046875, 20.249408721924},
{-252.0732421875, 1054.12109375, 19.956705093384},
{-260.552734375, 1040.31640625, 20.2421875},
{-282.9853515625, 995.6962890625, 20.2421875},
{-267.791015625, 1004.333984375, 19.679946899414},
{-256.2158203125, 994.55859375, 20.239133834839},
{-242.8115234375, 1002.1748046875, 19.7421875},
}
local jobBlip
local jobTarget
local jobMarker
local jobVehicle
local maxTarget = #districts...