addEventHandler("onMarkerHit", oCuboid, function(player)
if not player or not isElement(player) then return end
if getElementType(player) ~= "player" then return end
if not isPedInVehicle(player) then return end
--local spraw = getPedOccupiedVehicle(player)
local veh = getPedOccupiedVehicle(player)
local spr = getVehicleEngineState(veh)
local wyk = exports["smta_base_db"]:wykonaj("UPDATE smtadb_vehicles SET przechowalnia=1 WHERE id=?",getElementData(veh, "id"))
if getElementData(veh,"id") then
if wyk then
exports["smta_base_notifications"]:noti("Pojazd zosta? zaparkowany na parkingu.", player)
exports["smta_veh_base"]:zapiszPojazdy(veh)
setVehicleEngineState(veh,false)
destroyElement(veh)
else
outputChatBox("REVOLT_VEH_STORE - #01 - Zg?o? b??d.", g, 255, 0, 0)
end
end
end)