-- BRAMA PIERWSZA
local bm = createMarker(-2305.70557, -157.99330, 34.5, "cylinder", 1.0, 0, 0, 0, 255)
local d = createObject (5422, -2306.5, -155.39, 36.40, 0, 0, 0)
function od(thePlayer, key, state)
if isElementWithinColShape(thePlayer, colshape) then
if getElementData(thePlayer,"player:duty") == "PSP" then
moveObject(d, 10000, -2306.5, -155.39, 32.20)
setPedAnimation(thePlayer, "CRIB", "CRIB_Use_Switch", true, false, false)
setTimer(setPedAnimation, 1066.66, 1, thePlayer)
end
end
end
function zd(thePlayer, key, state)
if isElementWithinColShape(thePlayer, colshape) then
if getElementData(thePlayer,"player:duty") == "PSP" then
moveObject(d, 10000,-2306.5, -155.39, 36.40)
setPedAnimation(thePlayer, "CRIB","CRIB_Use_Switch", true, false, false)
setTimer(setPedAnimation, 1066.66, 1, thePlayer)
end
end
end
addEventHandler("onMarkerHit", bm, function(el, md)
if not md then return end
bindKey(el, "mouse_wheel_down", "down", od)
bindKey(el, "mouse_wheel_up", "down", zd)
end)
addEventHandler("onMarkerLeave", bm, function(el, md)
if not md then return end
unbindKey(el, "mouse_wheel_down", "down", od)
unbindKey(el, "mouse_wheel_up", "down", zd)
end)