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
41. nie dziala praca spedytora
https://imgur.com/a/TWtjeRM
42. Praca Kurier
Witam chcialbym zrobic prace kuriera od ilosci srp 2000 praca kurier pomoze ktos
c.lua
[lua]
pracaKuriera = createMarker( 2151.162, -2257.165, 13.343, "cylinder", 1 )
createBlipAttachedTo( pracaKuriera, 46, 2, 255, 255, 255, 255, 0, 250 )
text = createElement( "text" )
setElementPosition( text, 2151.162, -2257.165, 13.343 )
setElementData( text, "name", "Praca kurieranBranie paczkinZarobki: 45$ za paczkenWymagania: Kat C" )

veh = nil
niesiePaczke = false
oddawaniePaczki = nil
pracuje = false
oddanychPaczek = 0
wyciaganiePaczki = nil
wrocDoBazy = nil

x, y, z = 0, 0, 0

spawny = {
{2159.747, -2280.643, 13.439, 0.109, 0.013, 224.075}, -- 498 - Boxville
{2167.25, -2273.982, 13.45, 0.126, 0.036, 222.366}, -- 498 - Boxville
{2174.383, -2266.406, 13.459, 0.183, 0.026, 222.634}, -- 498 - Boxville
}

punkty = {
{2014.728, -1732.693, 14.234, 0, 0, 84.83},
{989.462, -1349.562, 13.377, 0, 0, 266.753},
{948.028, -1234.762, 16.716, 0, 0, 65.027},
{969.978, -1115.562, 23.857, 0, 0, 107.631},
{829.255, -861.336, 69.922, 0, 0, 204.335},
{937.551, -848.108, 93.675, 0, 0, 25.262},
{944.109, -706.326, 122.211, 0, 0, 28.819},
{785.61, -825.977, 70.29, 0, 0, 8.986},
{2011.183, -1643.589, 13.547, 0, 0, 112.41},
{2072.727, -1645.702, 13.547, 0, 0, 251.283},
{2326.929, -1915.344, 13.593, 0, 0, 53.434},
{1930.972, -1778.792, 13.547, 0, 0, 226.775},
{1730.517, -1912.169, 13.563, 0, 0, 91.146},
{1726.268, -...
43. [MTA] Calm Story - Nowa najlepsza
Hejj

https://www.youtube.com/watch?v=1IIsSgguY00
44. Praca od RP
Chcialbym zrobic prace street view od 200rp
bus.lua
[lua]
local missionText=createElement("text")
setElementData(missionText, "name", "Praca dorywcza:nKierowca pojazdu Street ViewnnWymagania:nPrawo Jazdy kat. B")
setElementPosition(missionText, 2101.18, -1359.52, 23.98)
local zone = createColCuboid(2101.18, -1359.52, 23.98, 10.5, 8.75, 5.5)
createBlip(2101.18, -1359.52, 23.98, 46,2,0,0,0,0,0,275)
-- local m1 = createMarker(-1922.67,573.14,34.45, "cylinder", 2.2, 96, 96, 96)
local m1 = createMarker(2101.18, -1359.52, 23.98-0.9, "cylinder", 1.2, 0, 122, 255,50)
setElementData(m1, 'typ', 'praca')


vehs = {}
local code = "StreetView"
veh_obj = {}

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, "player:srp") < 700 then triggerClientEvent(el, 'onClientAddNotification', el, 'Nie posiadasz wystarczaj?co pkt. reputacji:#bf0101n700 REP', 'error') return end
if exports["pystories-ustawienia-praca"]:getVehicleLicense(el,"B") then triggerClientEvent(el, 'onClientAddNotification', el, 'Nie posiadasz zdanego prawa jazdy:#bf0...
45. praca magazyn
Siema [you]. mam problem poniewa? punkty magazyniera dostaj? gdy wezm? paczk?, a nie wtedy kiedy j? oddam. Tutaj kod:
[lua]
local praca = createMarker(1094.77, -1221.48, 17.80-1, "cylinder", 2.0, 0, 122, 255, 50)
local t=createElement("text")
setElementData(t,"name", "PRACA: MagazyniernZAROBEK:nGRACZ 280.000 $ | PREMIUM 350.000 $nOPIS: Przenoszenie pude?")
setElementPosition(t,1094.77, -1221.48, 17.80)
createBlip(1094.77, -1221.48, 17.80, 46,2,0,0,0,0,0,275)
setElementDimension(t, 0)
setElementInterior(t, 0)


local miejscamagazynier = {
{1109.76, -1218.72, 17.80},
{1109.39, -1190.83, 18.21},
{1091.14, -1191.12, 18.24},
{1084.44, -1201.13, 17.86},
{1086.43, -1249.89, 15.83},
{1101.16, -1239.75, 15.82},
{1117.74, -1246.73, 15.92},
{1130.92, -1240.57, 25.30},
{1125.65, -1216.64, 25.30},
{1135.32, -1220.95, 25.30},
{1138.32, -1251.68, 25.30},
{1099.06, -1237.67, 15.82},
{1099.05, -1181.48, 18.72},
{1121.34, -1204.68, 17.70},
{1097.74, -1223.99, 15.82},
{1089.91, -1186.76, 18.31},

}

addEventHandler("onClientMarkerHit", praca, function(el, md)
if not md or getElementType(el) ~= "player" then return end
if el ~= localPlayer then return end
if not isElementWithinMarker(localPlayer, praca) then return end
if not getElementData(localPlayer, "player:job") then
local losuj = math.random(2, #miejscamagazynier)
toggleControl("sprint", false)
to...
46. Praca Ogrodnika
Potrafi kto? zrobi? co? z tym kodem wszystko dzia?? idealnie ale nie dodaje hajsu, zimne piwko jak kto? to zrobi :piwo:
[lua]local missionPed
local missionBlip
local missionMarker
local missionVehicle
local screenW, screenH = guiGetScreenSize()


local kupa=createVehicle(572, -2471.02, -318.69, 41.29, 359.42, 358.14, 324.58)
setElementFrozen(kupa,true)
local jobText=createElement("text")
setElementPosition(jobText, -2471.02, -318.69, 41.29)
setElementData(jobText, "name", "MTD - Traktor ogrodowy LE 160/92 H!")

local code="Koszenie trawy!"

local miejscakosiara2 = {
{-2520.43, -308.86, 38.76},
{-2520.60, -254.60, 38.10},
{-2484.64, -239.45, 39.46},
{-2456.18, -247.44, 39.97},
{-2421.88, -242.42, 39.37},
{-2384.30, -212.19, 42.36},
{-2377.39, -250.72, 42.34},
{-2330.68, -263.68, 42.71},
{-2289.79, -265.40, 43.05},
{-2298.46, -241.89, 42.49},
{-2324.89, -239.21, 41.23},
}
--local missionZaladunek=createMarker(-2382.81,-59.88,35.32-0.90,"cylinder",5,0,128,128)

function RGBToHex(red, green, blue, alpha)
if((red < 0 or red > 255 or green < 0 or green > 255 or blue < 0 or blue > 255) or (alpha and (alpha < 0 or alpha > 255))) then
return nil
end
if(alpha) then
return string.format("#%.2X%.2X%.2X%.2X", red,green,blue,alpha)
else
return string.format("#%.2X%.2X%.2X", red,green,blue)
end
end

local jobText=createElement("text")...
47. [MTA] MTA:SA Calm Story - NAJLEPS
▪️Informacje co do odcinka▪️
Dzisiaj przedstawi?em wam calmstory, a w tym najbardziej op?acaln? prace na serwerze! gor?co zapraszam Was do ogl?dania oraz poznajcie osob? kt?ra wygra?a 2000 PLN!

Kliknij tutaj by przej?? do odcinka
48. [MTA] MTA:SA Calm Story - PRACA L
▪️Informacje co do odcinka▪️
Dzisiaj przedstawi?em wam calmstory, pracowali?my na pracy laweciarza kt?ra jest naprawd? mega spoko prac?. Do tego mieli?my ma?e starcie z SAPD, tak?e zobacz to sam!

Kliknij aby przej?? do odcinka
49. [MTA] Calm Story - Nowa praca Law
Hejoooo

https://www.youtube.com/watch?v=gac7xlKZS7s
50. [MTA] MTA:SA PROJECT:SA - NOWA PR
▪️Informacje co do odcinka▪️
Dzisiaj przedstawi?em wam now? prac? jak? jest kurier, om?wi?em kilka zmian na serwerze, oraz opowiedzia?em o przysz?ych aktualizacjach na serwerze!


Kliknij tutaj aby przej?c do odcinka
51. [MTA] Calm Story - Nowa praca Kur
Hejooo!

https://www.youtube.com/watch?v=NNy5MNk51fM
52. Praca w całości po stronie serwera.
Siemka. Da si? napisa? prac? w ca?o?ci po stronie serwera? Nie chodzi mi tu o robienie jakiego? gui, tylko normalne rozpocz?cie pracy po wej?ciu w marker, wylosowanie celu i zako?czenie pracy. Za ka?d? odpowied?, kt?ra co? wniesie do tematu i pomo?e rozwia? moje w?tpliwo?ci stawiam piwko, a nawet i respekt.
53. praca
Cze??. Mam problem ot?? nie wiem jak stworzy? auto po stronie serwera tak aby skrypt clienta widzia? skrypty serwera .
client:
<lua>
marker = createMarker(-1838.72, -78.93, 15.11-1, "cylinder", 1, 0, 0, 0, 95)

addEventHandler("onClientMarkerHit", resourceRoot, function(hitElement, dimension)
if getElementType(hitElement) == "player" then
if isElement(source) and source == marker then
marker2 = createMarker(-1712.25, 389.30, 7.18-1, "cylinder", 3, 255, 0, 0, 95, hitElement)
blip2 = createBlip(-1712.25, 389.30, 7.18, 12, hitElement)
elseif isElement(source) and source == marker2 then
destroyElement(marker2)
destroyElement(blip2)
outputChatBox("Trwa za?adunek paliwa", localPlayer)
marker3 = createMarker(-2460.39, 786.61, 35.17-1,"cylinder", 3,255,0,0,95,hitElement)
blip3 = createBlip(-2460.39, 786.61, 35.17, 12, hitElement)
elseif isElement(source) and source == marker3 then
outputChatBox("Pozosta?o 2 punkty", localPlayer)
destroyElement(marker3)
destroyElement(blip3)
marker4 = createMarker(-2689.96, 233.43, 4.34-1,"cylinder",3,255,0,0,95, hitElement)
blip4 = createBlip(-2689.96, 233.43, 4.34, 12, hitElement)
elseif isElement(source) and source == marker4 then
outputChatBox("Pozo...
54. praca po wejściu do ata
witam zrobi?em tak jakby w?asny biznes jest on jako frakcja i nie wiem jak zrobi? ze w momencie gdy ta dana frakcja wsi?dzie do pojazdu pojawi si? jakie? miejsce docelowe czy cos
55. Praca pilot
Cze??. Mam problem z moj? prac?. ot?? wszyscy widz? markery nawet jak nie sa zatrudnieni w pracy i moge w nie wchodzi? i zalicza im punkt jak tego unikn???
[lua]local marker = createMarker(414.10, 2533.15, 19.15-0.9, "cylinder", 1, 0, 0, 0, 95)

function start(hitElement, player, dimension)
if getElementType(hitElement) == "player" then
if isElement(source) and source == marker then
setElementData(player,"pilot",true)
dodo = createVehicle(593, 411.30, 2504.05, 17, 0, 0, 90); warpPedIntoVehicle(hitElement, dodo)
marker2 = createMarker(201.45, 2503.73, 54.64, "ring", 10, 255, 0, 0, 95, player)
outputChatBox("Rozpocz??e? prac? pilota", player)
outputChatBox("Aby zako?czy? prac? wpisz /koniecpilot", player)
outputChatBox("Pami?taj nie ko?cz pracy b?da? w powietrzu, poniewa? zaczniesz spada?", player)
elseif isElement(source) and source == marker2 then
destroyElement(marker2)
marker3 = createMarker(-19.59, 2503.04, 79.78, "ring", 10, 255, 0, 0, 95, player)
elseif isElement(source) and source == marker3 then
destroyElement(marker3)
marker4 = createMarker(-201.90, 2474.05, 89.08, "ring", 10, 255, 0, 0, 95, player)
elseif isElement(source) and source == marker4 then
destroyElement(marker4)
marker5 =...
56. Praca
Cze?? mam problem ot??. usuwam marker po wjechaniu w niego ale po chwili on znow pojawia si? w tym samym miejscu kod lua:
local marker createMarker(414.102533.1519.15-0.9"cylinder"100095)

function 
MarkerHit(plrmatchingDimension)
dodo createVehicle(593411.302504.05170090)
warpPedIntoVehicleplrdodo)
end
addEventHandler
("onMarkerHit"markerMarkerHit)

function 
MarkerHit3(plrmatchingDimension)
local marker2 createMarker(201.452503.7354.64"ring"32550095plr)
local blip2 createBlip(201.452503.7354.6412plr)
end
addEventHandler
("onMarkerHit"markerMarkerHit3)

function 
MarkerHit2(plrmatchingDimension)
local marker3 createMarker(-1.502486.3289.22"ring"32550095plr)
local blip3 createBlip(-1.502486.3289.2212plr)
destroyElement(source)
destroyElement(source)
addEventHandler("onMarkerHit"marker2MarkerHit)
end
57. Praca
Cze??. Przychodz? z zapytaniem jak usuna? marker i blip po wejsciu w niego.
Chce aby marker i blip si? usun??y a pojawi? si? kolejny marker i blip na mapie.
58. Praca
Witam. Czy da si? jako? po??czy? funkcje aby ta druga widzia?? t? pierwsz?
local marker createMarker(-2521.16675, -624.94690131.5,"cylinder"1.52552550170 )
local Blip createBlip( -2521.16675, -624.94690131.546000255 )

function 
MarkerHitplrmatchingDimension )
    
outputChatBox "Rozpocz??e? prac? listonosza."plr)
    
outputChatBox "Jed? do wskazanych punkt?w na mapie."plr)
    
outputChatBox "S? one oznaczone ikon? C."plr)
    
vehicle createVehicle 609, -2494.38257, -602.00574132.56250 )
    
warpPedIntoVehicle plrvehicle)
     
marker2 createMarker(-2409.20190819.1427035.17969,"cylinder"1.525500170 )    
     
Blip2 createBlip(-2409.20190819.1427035.1796912000255)
end
addEventHandler
("onMarkerHit"markerMarkerHit)

function 
MarkerHit2plrmatchingDimension )
    
outputChatBox"Pozosta?o jeszcze 4 paczki")
    
destroyElementmarker2plr )
    
destroyElementBlip2plr )
end
addEventHandler
("onMarkerHit"marker2MarkerHit2)

Wyskakuje mi b??d w ostatniej linijce bo nie widzi argumentu 2 czyli "marker2"
jak zrobi? aby skrypt to widzia??
59. Praca
Cze?c, mam problem z moj? prac?. Chce aby po wzi?ciu auta inny gracz nie m?g? pojawi? kolejnego w tym samym miejscu tylko aby pojawi? si? komunikat w stylu"Poczekaj a? zwolni si? miejsce parkingowe".
local marker createMarker(-2521.16675, -624.94690131.5,"cylinder"1.52552550170 )

function 
MarkerHitplrmatchingDimension )
    
outputChatBox "Rozpocz??e? prac? listonosza"plr)
    
local boxville createVehicle 609, -2494.38257, -602.00574132.56250 )
    
warpPedIntoVehicle plrboxville)
    
end
addEventHandler
("onMarkerHit"markerMarkerHit)

local circlearea createColCircle ( -2494.38257, -602.0057410 )

function 
ColShapeHitboxvillematchingDimension )
       
local detection boxville boxvillecirclearea )
       
detection detection and getElementDimensionboxville ) == getElementDimensioncirclearea )
       if 
detection then
               outputChatBox 
"Poczekaj a? zwolni si? miejsce na parkingu",plr)
               
end                          
end 
addEventHandler
("onColShapeHit"boxvilleColShapeHit)
60. Praca na pseudola
Witam posiadam prace skladania aut , i chcia? bym zeby by?y mo?liwe 2 spawny aut , zrobi?em cos po swojemu lecz nie za bardzo dzia?a
Skrypt :
[lua]vehicles = {
--model +z maska l drzwi p drzwi bagaznik
{546, 0.1, 0, 3.5, 0, 2, 0, 0, -2, 0, 0, 0, -3.5, 0 },
{541, 0.1, 0, 3.5, 0, 2, 0, 0, -2, 0, 0, 0, -3.5, 0 },
{496, 0.1, 0, 3.5, 0, 2, 0, 0, -2, 0, 0, 0, -3.5, 0 },
{422, 0.3, 0, 3.5, 0, 2, 0, 0, -2, 0, 0, 0, -3.5, 0 },
{401, 0.1, 0, 3.5, 0, 2, 0, 0, -2, 0, 0, 0, -3.5, 0 },
{565, 0.05, 0, 3.5, 0, 2, 0, 0, -2, 0, 0, 0, -3.5, 0 },
{551, 0.2, 0, 3.5, 0, 2, 0, 0, -2, 0, 0, 0, -3.5, 0 },
{603, 0.2, 0, 3.5, 0, 2, 0, 0, -2, 0, 0, 0, -3.5, 0 },
}
vehicleSpawn = {
{-81.07, 1045.66, 20.44, 0.3, 0.0, 271.4},
{-81.30, 1055.43, 20.43, 0.3, 0.0, 271.8}, -- 541 - Bullet
}
jobStartPos = {-74.70, 1037.08, 19.72, 0, 0, 180.895}
terazNaprawia = 1
rd = 1
maCzesc = false

p = jobStartPos
jobStart = createMarker( p[1], p[2], p[3] - 0.9, "cylinder", 1 )
createBlipAttachedTo( jobStart, 46 )
t = createElement( "text" )
setElementPosition( t, p[1], p[2], p[3] )
setElementData( t, "name", "Branie cz??cinZarobki: 100 - 120$" )

wPracy = false

function nastepnaCzesc( )
vD = vehicleDoors
i = terazNaprawia
if i == 5 then
triggerServerEvent( "givePlayerMoney", localPlayer...
61. Praca z interaktywnym GUI
Witam, chcia?bym napisa? prac? z interaktywnym GUI, tak jak na przyk?ad magazynier na FutureRPG. Chodzi o to, ?e w trakcie pracy wy?wietli si? graczu na ekranie jaka? grafika, kt?r? b?dzie musia? przeci?gn?? myszk? w inne miejsce.
Pr?bowa?em co? kombinowa? z "onClientClick", "onClientCursorMove", oraz "getCursorPosition", ale nic nie wychodzi?o. Gdy klika?em na tak? grafik? to jej lewy g?rny r?g "przykleja?" si? do kursora, a gdy ni? porusza?em to cz?sto znika?a lub si? rozci?ga?a.
62. Praca Pizza Boya
Witam szukam rozwi?zania poniewa? w paczce OWL Gaming jest praca dostawcy pizzy a jest wy??czona i ani w urz?dzie ani w /setjob nie ma

kod -
CLIENT
[code]local blippizza, endblippizza
local jobstatepizza = 0
local route = 0
local oldroute = -1
local markerpizza, endmarkerpizza
local pizzaStopTimer = nil

local localPlayer = getLocalPlayer()

local routes = {
{ 2073.8505859375, -1659.05078125, 13.546875 },
{ 2238.02734375, -1645.23046875, 15.485620498657 },
{ 2507.708984375, -1682.45703125, 13.546875 },
{ 2486.5224609375, -2016.783203125, 13.546875 },
{ 2653.427734375, -1997.2109375, 13.5546875 },
{ 2778.29296875, -1970.7041015625, 13.546875 },
{ 2801.6083984375, -1495.5595703125, 19.481674194336 },
{ 2540.4111328125, -1248.4951171875, 40.156902313232 },
{ 2379.1064453125, -1276.1748046875, 24 },
{ 2256.4033203125, -1294.5703125, 23.975261688232 },
{ 2141.23828125, -1306.787109375, 23.989730834961 },
{ 2137.84765625, -1408.716796875, 23.987300872803 },
{ 2003.2294921875, -1596.5546875, 13.573805809021 },
{ 1889.9697265625, -2020.1357421875, 13.539081573486 },
{ 1872.38671875, -2144.177734375, 13.546875 },
{ 970.8994140625, -1832.8251953125, 12.608911514282 },
{ 792.291015625, -1762.2490234375, 13.411386489868 },
{ 646.3466796875, -1621.599609375, 15.100688934326 },
{ 760.6962890625, -1600.4609375, 13.426874160767 },
{ 305.3310546875, -1772.4404296875, 4.5722360610962 },
{ 169.30859375, -1770.724609375, 4.4037179946899 }...
63. Praca zbieracza marihuany
Hej,

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.

Co ju? mam?
[lua]
--[[
Skrypt: Praca zbieracza Marihuany.
Autor Skryptu: Rynberto
Nie masz prawa u?ycia kodu skryptu bez mojej zgody.
Skrypt utworzony 09.11.2019
]]

local marker_praca = createMarker(1816.39, -2085.70, 12.54, "cylinder", 2.0, 253, 135, 245, 255) -- Marker rozpocz?cia pracy

function wejscie_w_marker ( hitPlayer, matchingDimension ...
64. [MTA] MTA:SA ApolloMTA - Praca Sa
65. Praca
Chcia? bym zrobi? prace, ale nie wiem od czego zacz?? :( .
Prosz? o pomoc.
Daje :piwo:

Praca to kurier. Zapomnia?em tego wcze?niej napisa?.
66. Praca kuriera
[center]Witam, napisa?em prac? kuriera, lecz nie wiem jak zrobi? to ?e gdy wybuchnie auto, gracz zginie lub wysi?dzie to usuwa auto i anuluje prace

kod (SSide) :

[lua]
--[[

Praca Kuriera by TheNoobisty
*ServerSide*

]]--

--------- USTAWIENIA ---------


kasa = math.random(1000,1500) -- Zarobek gracza
kasa_premium = math.random(1200,1850) -- Zarobek premium
x,y,z = 2848.46, 1343.77, 11.16 -- Pozycja markeru dostawy
rejka = "KURIER" -- Napis na rejestracji
silnik = true -- (true - w??czony | false - wy??czony)
r,g,b = 255,255,255 -- Kolor 1 pojazdu
r2,g2,b2 = 255,255,255 -- Kolor 2 pojazdu
damage = true -- Ochrona przed uszkodzeniami (true - tak | false - nie)

------------------------------

local markerpkt = createMarker(x,y,z-3, 'cylinder', 5, 0,255,0,0)
createMarker(x,y,z-5.4, 'cylinder', 5, 0,255,0,75)

addEvent("inforozpoczecie", true)
addEventHandler("inforozpoczecie", root, function()
local vehicle = getPedOccupiedVehicle(source)
exports["np-notyfikacje"]:noti("Rozpoczynasz prac? kuriera, udaj si? do punktu dostawy paczki", source)
end)

addEvent("rozpoczecie", true)
addEventHandler("rozpoczecie", root, function(plr)
v = createVehicle ( 498, 790.75, 1677.96, 5.35, 359.4, 360.0, 271.1)
setElementData(plr, "pracuje", true)
setVehiclePlateText(v, rejka)
setVehicleEngineState (v, silnik)
setVehicleColor(v, r,g,b,r2,g2,b2)
setVehicleDamageProof(v, d...
67. Praca Busy
Witam posiadam prace busy kt?ra dzieli si? na linie miejsk? i pozamiejsk? problem jest z tym ze gdy wybieram linie miejsk? dostaje normalnie pieni?dze a gdy wybieram linie pozamiejska daje bilety i nie dostaje pieni?dzy :/

pystories-bus --> c.lua
[lua]sx, sy = guiGetScreenSize( )

text = createElement( "text" )
setElementPosition( text, 114.34, 1106.68, 13.71 )
setElementData( text, "name", "Kierowca autobusunZarobki:nLinia miejska: 35$nLinia pozamiejska: 45$nWynagrodzenie zale?y odnzadowolenia klient?w" )

praca = createMarker( 114.34, 1106.68, 13.71-0.9, "cylinder", 1 )
createBlipAttachedTo( praca, 46, 2, 255, 255, 255, 255, 0, 250 )

addEventHandler( "onClientRender", root, function()
if isElementWithinMarker( localPlayer, praca ) then
dxDrawImage( sx / 2 - 350 / 2, sy / 2 - 200 / 2, 350, 200, "panel.png" )
if isMouseInPosition( sx / 2 - 112 / 2 - 60, sy / 2 - 64 / 2, 112, 64 ) then
dxDrawImage( sx / 2 - 112 / 2 - 60, sy / 2 - 64 / 2, 112, 64, "miejska.png" )
end
if isMouseInPosition( sx / 2 - 112 / 2 + 60, sy / 2 - 64 / 2, 112, 64 ) then
dxDrawImage( sx / 2 - 112 / 2 + 60, sy / 2 - 64 / 2, 112, 64, "pozamiejska.png" )
end
showCursor( true, false )
else
showCursor( false, false )
end
end )

addEventHandler( "onClientClick", root, function( button, state, absoluteX, absoluteY, worldX, worldY, worldZ, clickedElement )
if button ==...
68. funkcje praca
Witam przychodz? z pytanie jakie b?d? potrzebowa? funkcj? by mie? prac? w niesko?czono?? praca si? zako?czy dopiero gdy osoba wyjdzie z pojazdu. Na pewno trzeba da? onClientVehicleExit
69. praca
witam, tworze swoja praca autorska i nie wiem jak zrobic np
gdy gracz dotknie ziemi(ulic itp itd) wtedy przeteleportuj (kordy)
70. Praca od ilus tam punktów Reputacji
Witam, chce zrobic aby streetview na pysie 3.0 bylo od 50 srp a oto moj kod:

[lua]local b=createElement("text")
setElementData(b,"name","PRACA: Kierowca Street-ViewnZAROBEK:nOD 75PLN-150PLNnOPIS: Identyfikowanie mapy")
setElementPosition(b,-1990.74, 957.88, 45.45)


local zone = createColSphere(-1986.58, 955.03, 45.54,3 )
createBlip(-1984.40, 953.92, 45.45, 46,2,0,0,0,0,0,275)
local m1 = createMarker(-1990.74, 957.88, 45.45-1, "cylinder", 1.5, 35, 142, 35)
vehs = {}
local code = "StreetView"
veh_obj = {}

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, "vehicle_job_owner2") then
outputChatBox("Wyst?pi? b??d #6969, zg?o? si? do CEO!", el)
return
end

if not md or getElementType(el) ~= "player" or getPedOccupiedVehicle(el) then return end
if getElementData(el,"player:job") then return end
if #getElementsWithinColShape(zone,"vehicle") >= 1 then outputChatBox("*Parking zaj?ty czekaj a? wyjedzie!",el) return end
local x,y,z = getElementPosition(el)
local bus ...
71. Praca
Mam problem nie chce mi si? respic kosiarka

[spoiler] [lua]Client <xx> triggered serverside event dajKosiarke:kosiarki, but event is not added serverside[/lua] [/spoiler]
Caly kod s.lua
[spoiler] [lua] function pokazpracownikow()
local q = exports['np-mysql']:wykonaj("SELECT * from konta order by koszlecenia desc")
local topka = {}

for i = 1,5 do
table.insert(topka, {nick = q[i]["login"], liczba = q[i]["koszlecenia"]})
end

return topka
end


tablica = pokazpracownikow()

setTimer(function()
tablica = pokazpracownikow()
end, 600000, 0)

addEvent("pokazTopke:kosiarki:source", true)
addEventHandler("pokazTopke:kosiarki:source", root, function()
triggerClientEvent(source, "pokazTopke:kosiarki:client", source, tablica)
end)

kosiarka = { }

addEvent("dajKosiarke:kosiarki", true)
addEventHandler("dajKosiarke:kosiarki", root, function()
kosiarka[source] = createVehicle(572, 770.50, -1306.18, 13.14, 0.9, 0.0, 3.4)
warpPedIntoVehicle(source, kosiarka[source])
triggerClientEvent(root, "ghost:vehicle", root, kosiarka[source])
setElementData(kosiarka[source], "kierowca:kosiarki", getElementData(source, "dbid"))
end)

addEvent("usunKosiarke:kosiarki", true)
addEventHandler("usunKosiarke:kosiarki", root, function()
if isElement(kosiarka[client]) then
destroyEleme...
72. PizzaBoy praca
Witam ot?? mam prace pizza boya, rozpoczynam, lecz nie ma markera do za?adowania
db3
https://imgur.com/a/eA0jLeB
kod
c.lua


[lua]--[[
Autor: sayo
]]

local pkt = {
{-2545.98, -203.16, 14.65},
{-2795.59, 139.16, 7.20},
{-2415.08, 332.47, 34.98},
{-2723.87, -314.69, 7.19},
{-2759.96, 556.03, 14.55},
{-2861.80, 813.36, 38.82},
{-2714.26, 127.89, 4.34},
{-2230.01, 250.83, 35.32},

local marker = false
local blip = false

function createBlips()
local rnd = math.random(1, #pkt)
marker = createMarker(pkt[rnd][1], pkt[rnd][2], pkt[rnd][3]-0.99, "cylinder", 1.1, 255,80,0)
blip = createBlipAttachedTo(marker, 12)
end

function createBlips1()
marker2 = createMarker(-2663.61, 238.24, 4.34, "cylinder", 1.2)
blip2 = createBlipAttachedTo(marker2, 12)
end

function destroyBlips()
if marker and isElement(marker) then
destroyElement(marker)
end
if blip and isElement(blip) then
destroyElement(blip)
end
if blip2 and isElement(blip2) then
destroyElement(blip2)
end
if marker2 and isElement(marker2) then
destroyElement(marker2)
end
end



addEventHandler("onClientMarkerHit", resourceRoot, function(hit)
if hit ~= localPlayer then return end
if source ~= marker2 then return end
local veh = getPedOccupiedVehicle(hit)
if not veh then return end
fadeCamera(false)
exports['notyfikacje']:showBox("info","Trwa za?adunek pizzy.")
setElementFrozen(veh,true)
showCur...
73. Praca Autobusy
Witam chcia?bym zrobic w tym skrypcie tak aby by?o wymagane 500rp oraz zeby autobus respi? sie w dw?ch miejscach. Za pomoc daje piwko


[lua]
local sw, sh=guiGetScreenSize()
local w, h=(sw/1680), (sh/1050)
local font=dxCreateFont("f.ttf", 12)
local font2=dxCreateFont("f.ttf", 10)
local font3=dxCreateFont("f.ttf", 15)
local font4=dxCreateFont("f.ttf", 14)
local menuJob=false
local potwierdzExit=false
local praca="Autobusy"
local bileciki=false
local bilecikii=false
local ileos=0
local jakibilet="?"
startTick=getTickCount()

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 )
if ( cx >= x and cx <= x + width ) and ( cy >= y and cy <= y + height ) then
return true
else
return false
end
end


przystanki={
{-2122.41,112.63,35.17},
{-2169.59,-26.66,35.17},
{-2260.83,-96.63,35.17},
{-2334.27,-187.85,35.17},
{-2369.71,15.27,35.16},
{-2249.44,274.71,35.16},
{-2224.04,482.04,35.02},
{-2192.46,562.47,35.02},
{-2007.88,409.30,35.02},
{-2086.54,322.91,35.02},
{-2149.06,229.84,35.17},
{-2086.71,62.46,34.56},
}

local przystanek
local przystanekTarget
local blip


addEvent("autobusy:kolizja", true)
addEventHandler("autobusy:kolizja", getRootElement(), fu...
74. Praca dostawcy.
Witam ot?? mam b??d z prac? dostawcy
KOD
c
[lua]local elo=createColCuboid(1612.37, -1801.68, 12.47, 10.75, 10.5, 6.75)
local bm="910340"
local s1="Srednia"
local l1="Duza"
local fc="825400"
local bb="186000"
local zlecenia2={
--nazwa, zarobek, cel, zarobek RP--
{"Silniki", bb, "BB", s1},
{"Imigranci", fc, "FC", "Mala"},
}

addEvent("kur:open", true)
addEventHandler("kur:open", getRootElement(), function(hitElement)
local screenW, screenH = guiGetScreenSize()
if hitElement == localPlayer then
gluwno = guiCreateWindow((screenW - 390) / 2, (screenH - 285) / 2, 390, 285, "System zlece?", fabbe)
guiWindowSetMovable(gluwno, fabbe)
guiWindowSetSizable(gluwno, fabbe)
guiSetAlpha(gluwno, 0.75)
informejszyn = guiCreateLabel(16, 29, 364, 43, "Poni?ej wy?wietlono mo?liwe zlecenia, wybierz jedno z nich a nast?pnie kliknij OK.", fabbe, gluwno)
guiSetFont(informejszyn, "default-bold-small")
guiLabelSetHorizontalAlign(informejszyn, "left", true)
button = guiCreateButton(236, 249, 144, 26, "ZAMKNIJ", fabbe, gluwno)
ok = guiCreateButton(10, 249, 144, 26, "OK", fabbe, gluwno)
zlecenia = guiCreateGridList(10, 68, 370, 176, fabbe, gluwno)
kolumna=guiGridListAddColumn(zlecenia, "Zlecenie", 0.4)
guiGridListAddColumn(zlecenia, "Zarobek", 0.2)
guiGridListAddCol...
75. praca ogrodnika
witam chcia?bym tutaj dodac rosline je?li zaczynasz prace pokazuje marker a ja chce zeby pokazywa?o rosline pomoze ktos wstawiam piwko

[lua]local startPracy = createMarker(1146.74, -2141.34, 68.76-0.9, "cylinder", 1.5)
createBlipAttachedTo(startPracy, 46)

local punktyOgrodnik = {
{1134.43, -2139.99, 70.32-0.9},
{1147.27, -2091.87, 70.59-0.9},
{1143.32, -2081.57, 69.12-0.9},
{1127.85, -2061.80, 69.01-0.9},
{1042.80, -2185.93, 40.34-0.9},
{1036.30, -2191.96, 39.51-0.9},
{1085.50, -2233.60, 47.50-0.9},
}

x,y = guiGetScreenSize()
px, py = (x/1024), (y/768)

local mousePoints = {
{246*px, 387*py, 15*px, 15*px},
{276*px, 370*py, 15*px, 15*px},
{302*px, 377*py, 15*px, 15*px},
{342*px, 377*py, 15*px, 15*px},
{372*px, 360*py, 15*px, 15*px},
{402*px, 387*py, 15*px, 15*px},
{432*px, 387*py, 15*px, 15*px},
{442*px, 365*py, 15*px, 15*px},
{478*px, 365*py, 15*px, 15*px},
{498*px, 383*py, 15*px, 15*px},
{549*px, 366*py, 15*px, 15*px},
{569*px, 373*py, 15*px, 15*px},
{589*px, 383*py, 15*px, 15*px},
{595*px, 356*py, 15*px, 15*px},
{629*px, 373*py, 15*px, 15*px},
{649*px, 373*py, 15*px, 15*px},
{679*px, 390*py, 15*px, 15*px},
{699*px, 373*py, 15*px, 15*px},
{729*px, 363*py, 15*px, 15*px},
{759*px, 373*py, 15*px, 15*px},
{779*px, 373*py, 15*px, 15*px},
}
target=0
addEventHandler("onClientMarkerHit", startPracy, function(h)
if h ~= localPlayer then return end
if isPedInVehicle(localPlayer) then return end
setElementDa...
76. Praca kuriera.
Witam ot?? pomo?e mi kto? napisa? prace kuriera? Chce co? takiego wchodzimy w marker dostajemy pojazd, po czym musimy dojecha? do 5 punkt?w i teleportuje nas na miejsce gdzie mo?na zn?w rozpocz??, oraz je?eli wyjdziemy z pojazdu anulujemy prace.
77. Nie daje kasy. Praca, db3
Witam robi? prac? i gdy wje?d?am w cel to nie dodaje kasy sa b?edy w db3:
Error: Client (Mazeusz*) triggered serverside event givePlayerMoney but event is not added serverside
WARNING: praca_dealeragtaopraca.lua:85 (i 189) Bad argument @ 'addeventhandler' (i removeeventhandler) [Expected funkction at argument 3 got nil]

[ Dodano : 2019-02-15, 21:23 ]
[lua]local missionPed
local missionBlip
local missionMarker
local missionVehicle
local screenW, screenH = guiGetScreenSize()

local code="Nielegalna Pracan Dostawcy Narkotykown Zarobek ?atwyn Ryzyko Du?e"

local cele = {
{-1051.74, -1186.65, 129.32},
{-1051.74, -1186.65, 129.32},
{-1051.74, -1186.65, 129.32},
{-1051.74, -1186.65, 129.32},
{-1051.74, -1186.65, 129.32},
{-1051.74, -1186.65, 129.32},
{-1051.74, -1186.65, 129.32},


}
--local missionZaladunek=createMarker(-1673.7763671875, -233.0263671875, 10.602230072021,"cylinder",5,0,128,128)

local text=createElement("text")
setElementPosition(text, -1177,-1153.38,129.63)
setElementData(text,"name","Nielegalna Praca Rozwozu NarkotykownZarobek=?atwynRyzyko=Du?e")

addEvent("startJobek", true)
addEventHandler("startJobek", resourceRoot, function(veh)
if getElementData(localPlayer,"player:job") ~= code then return end
missionVehicle=veh
showMarker()
addEventHandler("onClientRender",root,render3)
setTimer(renderstop3,1000,1)
end)

funct...
78. praca
Witam chcia?bym tutaj dodac np dwie skrzynki ale jak dodaje to jedna znika a druga nie nie wiem o co chodzi pomoze ktos?


[lua]
local praca = createMarker(246.17,-53.87,0.58, "cylinder", 1.0, 0,100,0, 80)
local t=createElement("text")
setElementData(t,"name", "Praca przenoszenie ButeleknZarobki:nGracz:50k Premium 75k")
setElementPosition(t,246.17,-53.87,1.58)
setElementDimension(t, 0)
setElementInterior(t, 0)


local miejscamagazynier = {
{244.31,-57.83,1.58},
{244.73,-60.18,1.58},
{248.59,-60.19,1.57},
{251.17,-60.18,1.57},
{255.66,-59.18,1.57},
{255.58,-56.94,1.57},
{255.38,-54.68,1.57},
{251.71,-58.15,1.57},
{249.84,-58.24,1.57},
}

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


bindKey("e", "down", function()
if not isElementWithinMarker(localPlayer, praca) then return end
if not getElementData(localPlayer, "player:job") then
local losuj = math.random(2, #miejscamagazynier)
setElementData(localPlayer, "player:job", true)
setPedAnimation ( localPlayer, "CARRY", "crry_prtial", 1,true )

local skrzynia = createObject(1486, 1, 1, 1)
attachElements (...
79. Praca Na RP
[lua] local b=createElement("text")
setElementData(b,"name","PRACA: Kierowca Street-ViewnZAROBEK:OD 40k DO 50knWymagania:Prawo Jazdy Kat B")
setElementPosition(b,160.86,-169.90,1.58)


local zone = createColSphere(-1986.58, 955.03, 45.54,3 )
createBlip(160.86,-169.90,1.58, 46,2,0,0,0,0,0,275)
local m1 = createMarker(160.86,-169.90,1.58-1, "cylinder", 1, 35, 142, 35)
vehs = {}
local code = "StreetView"
veh_obj = {}

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, "vehicle_job_owner2") then
outputChatBox("Wyst?pi? b??d #6969, zg?o? si? do CEO!", el)
return
end
if getElementData(el,"player:license:pjB") ~= 1 then
outputChatBox("* Aby tu pracowa? musisz mie? prawo jazdy kat. B!", el, 255, 0, 0)
return
end
if not md or getElementType(el) ~= "player" or getPedOccupiedVehicle(el) then return end
if getElementData(el,"player:job") then return end
if #getElementsWithinColShape(zone,"vehicle") >= 1 then outputChatBox("*Parking zaj?ty czekaj a? wyjedzie!&...
80. Praca tramwaj
Witam powie mi kto? jak przerobi? prac? tramwajarza tak aby checkpointy by?y niesko?czone?

Tutaj wstawiam kod:

client:
[lua]--[[
Praca tramwaje

]]--
local code = "tramwaje"
local Kursytramwaje = {
{-2264.67, 525.08, 35.60},
{-2264.86, 554.23, 35.50},
{-2264.88, 597.16, 39.83},
{-2264.91, 652.92, 49.75},
{-2264.96, 721.44, 49.79},
{-2264.89, 802.29, 49.86},
{-2264.88, 894.73, 66.91},
{-2264.88, 998.42, 79.29},
{-2264.86, 1113.39, 76.58},
{-2272.89, 1237.89, 46.27},
{-2160.05, 1274.23, 27.32},
{-2039.96, 1307.38, 7.62},
{-1908.19, 1321.76, 7.50},
{-1792.88, 1378.78, 7.50},
{-1686.27, 1299.39, 7.50},
{-1595.23, 1199.52, 7.50},
{-1584.13, 1065.85, 7.50},
{-1529.82, 947.67, 7.50},
{-1641.08, 921.13, 16.97},
{-1776.48, 921.13, 25.12},
{-1911.54, 921.00, 35.71},
{-2001.63, 869.91, 45.75},
{-1881.63, 848.88, 35.50},
{-1745.98, 848.88, 25.18},
{-1610.50, 848.89, 8.00},
{-1540.12, 782.52, 7.50},
{-1630.59, 728.75, 14.87},
{-1711.55, 670.22, 25.12},
{-1795.04, 603.25, 33.79},
{-1930.54, 603.25, 35.50},
{-2003.41, 534.35, 35.50},
{-2003.63, 399.12, 35.50},
{-2004.68, 263.58, 31.81},
{-2006.50, 128.35, 28.00},
{-2045.20, 30.38, 35.62},
{-2166.55, 12.10, 35.62},
{-2223.97, -70.08, 35.62},
{-2253.73, 38.59, 35.62},
{-2251.50, 170.32, 35.62},
{-2251.50, 302.33, 35.62},
{-2306.47, 417.18, 35.50},
{-2362.24, 507.33, 30.00},
{-2269.28, 511.57, 3...