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: wymagane
1. Wymagane prawo jazdy na pracach.
Witam, mam problem z wymaganym prawkiem na prac?.

Sweepery s? zrespione na mapie

Fragment kodu:
addEventHandler("onVehicleStartEnter"resourceRoot, function(plr,seat)
    if 
getElementData(plr,"player:license:pjB") ~= 1 then
        outputChatBox
("#ff0000✖#ffffff Nie posiadasz prawa jazdy kat. B!"el255255255true)
        return 
end
end
)


Po dodaniu "CancelEvent()" nie pojawia si? wiadomo?? o braku prawa jazdy, a na debugscript 3 i konsoli widnieje
[19-12-09 17] ERROR: [skrypty]/[prace]/pystories-praca-sweeper/s_job.lua:77: attempt to call global 'CancelEvent' (a nil value)
2. Wymagane RP do rozpoczecia pracy
Witam ot?? mam kod jak i linijke lecz nie wiem jak to wstawi? by zadzialalo poprawnie. Chodzi mi g?ownie o to, ze jak gracz wejdzie w marker wy?wietla si? informacja ze nie posiada danej reputacji
kod kt?ry chce doda?
[lua]if getElementData(localPlayer, "player:reputation") < 350 then triggerEvent("onClientAddNotification", localPlayer, "Nie posiadasz 350 REP", "error") return end[/lua]

kod pracy
[lua]local missionText=createElement("text")
setElementData(missionText, "name", "Rozpocz?cie Pracy MoveLineTrain")
setElementPosition(missionText, -2275.65, 521.40, 35.11)
local parking=createElement("text")
--setElementData(parking, "name", "Zajezdnia FirmynPSRPG Company.nnNie Zastawia?!")
--setElementPosition(parking, -2270.48, 510.18, 35.02)
--local parking2=createElement("text")
--setElementData(parking2, "name", "Parking FirmynThe Well Stacked Pizza Co.nNie Zastawia?!")
--setElementPosition(parking2, 2095.67, -1794.74, 13.39)
local zone = createColCuboid(-2276.08, 505.98, 34.02, 11, 11, 11)
local opistrain = "MoveLineTransport."

createBlipAttachedTo(parking, 46)

---createBlip(-2105.49, -1806.53, 13.55, 46,2,0,0,0,0,0,275)
-- local m1 = createMarker(-1922.67,573.14,34.45, "cylinder", 2.2, 96, 96, 96)
local tramwaje = createMarker(-2275.65, 521.40, 35.11-0.9, "cylinder", 1.5, 255, 0, 0)

--cre...
3. wymagane prawko
Witam jak zrobi? w ogrpg wymagane prawko w pracach bo pr?bowa?em to doda? lecz mi nie wychodzi
4. Wymagane prawo jazdy w pracach GM SkyGame
Witam,
Posiadam GM SkyGame i mam problem z ustawieniem wymaganego prawka do pracy dorywczej, je?eli pojazd jest zrespiony.

Skrypt ogrpg-vehicles

[lua]

local categoryA={[463] = true,[462] = true,[461] = true,[581] = true,[448] = true,[468] = true,[471] = true,[521] = true,[522] = true,[523] = true}
local categoryB={[602] = true,[545] = true,[496] = true,[517] = true,[401] = true,[410] = true,[518] = true,[600] = true,[527] = true,[436] = true,[589] = true,[580] = true,[419] = true,[439] = true,[533] = true,[549] = true,[526] = true,[491] = true,[474] = true,[445] = true,[467] = true,[604] = true,[426] = true,[507] = true,[547] = true,[585] = true,[405] = true,[587] = true,[409] = true,[466] = true,[550] = true,[492] = true,[566] = true,[546] = true,[540] = true,[551] = true,[421] = true,[516] = true,[529] = true,[488] = true,[460] = true,
[469] = true,[487] = true,[510] = true,[509] = true,[481] = true,[586] = true,[472] = true,[473] = true,[493] = true,[595] = true,[484] = true,[430] = true,[453] = true,[452] = true,[446] = true,[454] = true,[485] = true,[552] = true,
[438] = true,[574] = true,[420] = true,[525] = true,[408] = true,[596] = true,[597] = true,[427] = true,[599] = true,[490] = true,[432] = true,[528] = true,[601] = true,[407] = true,[544] = true,[470] = true,[598] = true,[588] = true,
[532] = true,[443] = true,[486] = true,[531] = true,[543] = true,[422] = true,[583] = true,[478] = true,[605] = true,[554] = true,[530] = true,[418] = true,[572] = t...