Wysłany: 2020-06-13, 22:32
AmLotte.
Wiek: 21 Na forum: 2183 dni Posty: 134
Nick w MP: AmLotte
Piwa : 443
Chodzi mi o np. taki przyk?ad. Nie rozumiem tego...
Kod: 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()
destroyElement(blip)
destroyElement(jobMarker)
playSoundFrontEnd(5)
setElementData(el,"gracz:praca",false)
else
local veh = getPedOccupiedVehicle(el)
showMarker()
setTimer(function()
playSoundFrontEnd(12)
rp = math.random(1,3)
kasa = math.random(20000,20000)
if getElementData(localPlayer,"player:premium") then
currentMoney = getElementData(el, "player:money") or 0
setElementData(el, "player:money", currentMoney+kasa)
setElementData(el,"player:srp", getElementData(el,"player:srp")+rp)
triggerEvent('onClientAddNotification', localPlayer, 'Za dojechanie na przystanek otrzymujesz,\nwynagrodzenie: #00c005'..kasa..' $#FFFFFF oraz #00c005'..rp..' REP', 'success')
end
end,4800,1)
end
end
To jest jaka? zmienna kt?rej si? u?ywa do losowych punkt?w czy co?
Wysłany: 2020-06-13, 22:59
Wilq
Wiek: 24 Na forum: 4428 dni Posty: 3410
Piwa : 739
Ale jaki target? Wska? linijk?.
Wysłany: 2020-06-14, 13:19
PatryKK.
Emeryt LUA
Wiek: 26 Na forum: 3060 dni Posty: 1060
Nick w MP: PatryKK.
Piwa : 2322
if jobTarget > maxTarget and
O to Ci chodzi?
Tagi: oznacza :: target?
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: