Poniewa? jak stworze po kliencie, to np marker ma kordy
-1933.07,1284.86,-34.79
a ja bd na kordach o par? jednostek wy?ej np:
-1933.07,1284.86,-18.23
to dalej wykrywa ?e jestem w markerze.
Chodzi tutaj o to ?e stworzymy marker i jeste?my nad nim to dalej wykrywa ?e jeste?my jakby w markerze,a serverside nie ma takiego problemu
Wilq, zrobi?em tak, lecz nie wiem jak naprawi? ten b??d pr?bowa?em funkcji tonumber
b??d db3
attempt to compare number with boolean
kt?ry znajduje si? tutaj
if not z >= (-36) then return end
kod
local x,y,z = getElementPosition(startPracyMagazyn)
addEventHandler("onClientMarkerHit", startPracyMagazyn, function(h)
if not z >= (-36) then return end
if h ~= localPlayer then return end
if isPedInVehicle(localPlayer) then return end
setElementData(localPlayer, "praca:magazyn:gui", true)
showCursor(true)
end)
addEventHandler("onClientMarkerHit", startPracyMagazyn, function(h)
local _,_,z = getElementPosition(localPlayer)
local _,_,z2 = getElementPosition(source)
if z > z2 then return end
if h ~= localPlayer then return end
if isPedInVehicle(localPlayer) then return end
setElementData(localPlayer, "praca:magazyn:gui", true)
showCursor(true)
end)
Nie możesz pisać nowych tematów Nie możesz odpowiadać w tematach Nie możesz zmieniać swoich postów Nie możesz usuwać swoich postów Nie możesz głosować w ankietach