addEventHandler("onMarkerHit",oddanie,function(el,md)
if getElementType(el) ~= "player" then return end
local veh = getPedOccupiedVehicle(el)
if not veh then return end
if veh and getElementModel(veh) ~= 578 then return end
local duty = getElementData(el,"player:duty")
if not duty or (duty and duty ~= "SAPD") then return end
local tow = getElementAttachedTo ( veh )
if not tow then return end
triggerClientEvent(el,"glownyparking:refresh",root,tow)
end)
addEventHandler("onMarkerLeave",oddanie,function(el,md)
if getElementType(el) ~= "player" then return end
local veh = getPedOccupiedVehicle(el)
if not veh then return end
if veh and getElementModel(veh) ~= 578 then return end
local duty = getElementData(el,"player:duty")
if not duty or (duty and duty ~= "SAPD") then return end
local tow = getElementAttachedTo ( veh )
if not tow then return end
triggerClientEvent(el,"glownyparking:chowaj",root)
end)