local minut= 1
function sypnijmu()
local marker = getElementsByType("pickup")
for _,m in ipairs(marker) do
if getElementData(m, "owner") then
local wyplata= getElementData(m, "payday")
exports['ogrpg-db']:dbSet("UPDATE biznesy SET saldo=saldo+?? WHERE id=?",wyplata,getElementData(m,"id"))
end
end
end
setTimer(sypnijmu,1000*minuta,0)