local markery = {
{-2668.07, 1273.93, 55.43},
{-2677.32, 1274.63, 55.43},
}
for i,v in ipairs(markery) do
local markery = createMarker(v[1], v[2], v[3]-1, "cylinder", 9, 0, 0, 0, 170)
end
addEventHandler("onClientMarkerHit", markery,
function(el)
local kasa = getPlayerMoney(el)
local hajs = 10
local veh = getPedOccupiedVehicle(el)
if kasa < hajs then outputChatBox("Nie posiadasz wystarczaj?co pini?dzy aby przejecha?.", client, 255,255,255, true) return end
if not veh then outputChatBox("Nie jeste? w aucie", client, 255,255,255, true) return end
setPedFrozen(veh,true)
takePlayerMoney(veh, hajs)
setPedFrozen(veh,false)
--end
end)