local CLT = { -- ChangeLevelTbl redforest_guid_redforest = {-171.5700,2.2687,-50.6813,3539,2772}, pripyat_guid_redforest = {1.9774,-0.3767,184.0138,104955,2945}, outskirts_guid_redforest = {-82.2785,0.4007,84.8129,107286,4931}, } function change_lvl(p) if db.actor:is_talking() then db.actor:stop_talk() end ChangeLevel(vector():set(CLT[p][1], CLT[p][2], CLT[p][3]), CLT[p][4], CLT[p][5], vector():set(CLT[p][6] or 0, CLT[p][7] or 0, CLT[p][8] or 0), true) end function have_money(count) return db.actor:money() >= count end function get_cost_sect(section, count) local cost = ini_sys:r_s32(section, 'cost') return cost and cost * (count or 1) end