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: busy
1. Busy nie daje rp
Witam mam prace busow lecz nie wiem czemu ale za jeden punkt nie dostaje sie rp
c.lua
[lua]
sx, sy = guiGetScreenSize( )

text = createElement( "text" )
setElementPosition( text, 1154.06, -1772.67, 16.60 )
setElementData( text, "name", "Kierowca autobusunZarobki:nWymaganian 600RP Prawo Jazdy Kat C." )

praca = createMarker( 1154.06, -1772.67, 15.6, "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 == "left" and state == "down" then
if isElementWithinMarker( localPlayer, praca ) then
if isMouseInPosition( sx / 2 - 112 / 2 - 60, sy / 2 - 64 / 2, 112, 64 ) then
if getElementData( loc...
2. Prawko busy
Witam posiadam skrypt na prace autobus?w lecz gdy daje linie pozamiejsk? moge jecha? bez prawa jazdy :/ prosze o pomoc

Kod gdzie jest prawko na linie miejsk? :
[lua]
addEventHandler( "onClientClick", root, function( button, state, absoluteX, absoluteY, worldX, worldY, worldZ, clickedElement )
if button == "left" and state == "down" then
if isElementWithinMarker( localPlayer, praca ) then
if isMouseInPosition( sx / 2 - 112 / 2 - 60, sy / 2 - 64 / 2, 112, 64 ) then
if getElementData( localPlayer, "player:srp" ) < 1000 then
exports["pystories-notifications"]:createAlert( "Nie posiadasz wymaganej reputacji. (1000 RP)" )
else
if getElementData( localPlayer, "player:license:pjC" ) ~= 1 and getElementData( localPlayer, "player:license:pjC" ) ~= true then
exports["pystories-notifications"]:createAlert( "Nie posiadasz prawajazdy kategorii C." )
else
triggerServerEvent ( "startujPrace", resourceRoot, localPlayer, "miejska" )
end
end
end
if isMouseInPosition( sx / 2 - 112 / 2 + 60, sy / 2 - 64 / 2, 112, 64 ) then
if getElementData( localPlayer, "player:srp" ) < 2000 then
export...
3. 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 ==...
4. Skrypt na BUSY, Play Your Stories 3.0
Podmieni?em kordy pracy autobus?w, ale jak wchodz? w marker praca wgl si? nie odpala. ZA POMOC DAJE :piwo:

[lua]--[[
Praca busa

]]--

local code = "Autobusy"
local districtsBus


local districtsBus = {
{-211.65,1200.89,20.73},
{-1711.17,951.17,24.14},
{-172.91,1200.91,20.71},
{-43.86,1201.09,20.35},
{-0.48,1201.25,20.57},
{47.82,1201.28,19.93},
{123.83,1188.14,18.27},
{191.09,1070.76,20.33},
{224.07,968.66,29.47},
{152.05,898.86,21.86},
{31.18,887.75,25.34},
{-66.92,854.48,19.09},
{-152.77,816.76,22.77},
{-263.93,791.28,17.58},
{-257.73,828.08,15.09},
{-213.71,870.92,11.53},
{-189.94,978.75,20.10},
{-187.71,1018.77,20.73},
{-247.31,1020.31,20.74},
{-273.89,1063.29,20.73},
{-315.05,1084.09,20.73},
{-344.14,1130.12,20.73},
{-287.51,1146.32,20.73},
{-272.03,1188.89,20.72},
{-239.23,1210.57,20.88},
}


local districtsBus2 = {
{-211.65,1200.89,20.73},
{-1711.17,951.17,24.14},
{-172.91,1200.91,20.71},
{-43.86,1201.09,20.35},
{-0.48,1201.25,20.57},
{47.82,1201.28,19.93},
{123.83,1188.14,18.27},
{191.09,1070.76,20.33},
{224.07,968.66,29.47},
{152.05,898.86,21.86},
{31.18,887.75,25.34},
{-66.92,854.48,19.09},
{-152.77,816.76,22.77},
{-263.93,791.28,17.58},
{-257.73,828.08,15.09},
{-213.71,870.92,11.53},
{-189.94,978.75,20.10},
{-187.71,1018.77,20.73},
{-247.31,1020.31,20.74},
{-273.89,1063.29,20.73},
{-315.05,1084.09,20.73},
{-344.14,1130.12,20.73},
{-287.51,1...
5. Busy
Witam zrobi?em sobie ju? po stronie client ?e kt?ry jest zwyk?y a kt?ry stop marker na np 5 sekund

c-side

[lua]
local districtsBus = {
{-1771.5693359375, 946.0849609375, 24.874113082886,zwykly=true},
{-1955.75,933.93,42.85,10.2,359.9,90.6,zwykly=true},
{-2009.06,882.39,45.43,0.0,359.8,179.7, stop=true, "SF Carlton Heights"},
{-2009.41,693.28,45.43,0.0,359.9,179.5,zwykly=true},
{-2008.96,488.91,35.13,0.0,359.8,179.9,stop=true, "SF Kings - s?u?by miejskie"},
{-2009.68,169.38,27.67,360.0,359.9,180.5, stop=true, "SF Doherty - warsztat, salon"},
{-2009.45,78.19,27.92,3.7,0.2,179.7, stop=true, "SF Doherty - stra? po?arna"},
{-2010.23,-53.52,35.30,360.0,0.1,178.8},
{-2147.36,-67.23,35.31,0.0,0.0,89.7},
{-2169.45,-153.81,35.31,360.0,359.9,179.2},
{-2289.54,-187.09,35.31,360.0,359.6,90.0, stop=true, "SF Garcia - warsztat"},
{-2357.33,-182.24,35.31,359.9,0.3,55.9},
{-2369.73,-87.09,35.31,0.0,359.9,357.6},
{-2275.95,-72.82,35.30,360.0,360.0,269.6},
{-2262.52,-173.64,35.31,0.0,0.2,180.3,stop=true},
{-2262.80,-345.20,51.01,0.1,0.1,179.1},
{-2199.80,-484.37,48.34,356.6,2.3,202.0},
{-2262.33,-645.72,69.51,0.4,2.1,159.2},
{-2273.26,-757.48,80.64,17.1,0.3,115.5},
{-2344.32,-721.49,107.28,16.7,6.9,338.4},
{-2394.19,-633.42,131.04,7.2,359.9,53.2},
{-2417.56,-605.31,132.70,360.0,0.1,36.7,stop=true,"SF Missionary Hill - Radio...