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: zajęte
1. Zajęte miejsce
Witam. Doda?em do kodu kilka linijek ?e gdy jest jaki? samoch?d w colshape to ?eby wyskakiwa? napis lecz nie dzia?a tylko tworzy si? ca?a funkcja. Nie ma ?adnych b??d?w w DB3.

[lua]col2 = createColCuboid(-210.68753, 1132.18127, 19.74219, 4, 4, 4)

addEventHandler("onMarkerHit", resourceRoot, function(el, md)
for k, v in ipairs (getElementsByType("vehicle")) do
if isElementWithinColShape(v, col2) == true then return outputChatBox("Miejsce parkingowe jest aktualnie zaj?te. Poczekaj chwilk? a? kto? odjedzie ...", el, 0, 50, 100) end
end

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

if isElementWithinMarker(el, prawkobfc) then

if getElementData(el, "prawkob") == true then
outputChatBox("Posiadasz ju? Prawo Jazdy Kat.B ! Nie mo?esz go zrobi? jeszcze raz !", 255, 0, 0)
return
end
if getPlayerMoney(el) < 450 then return outputChatBox("Nie posiadasz wystarczaj?co pieni?dzy na t? inwestycj? !", el, 255, 0, 0) end
if getElementData(el, "UP") < 10 then return outputChatBox("Nie posiadasz wystarczaj?co Urban Points?w na t? inwestycj? !", el, 255, 0, 0) end
egzaminStart(el)
return
end

if not isElementVisibleTo(source, el) then return end

local postep = getElementData(el, "egzaminP_postep")
if not postep then return end

...