local resources = {}

-- Core
--table.insert(resources, "oAntiHook")
table.insert(resources, "oMysql")
table.insert(resources, "oCore")
table.insert(resources, "oFont")
table.insert(resources, "oCompiler")
table.insert(resources, "oDebug")
table.insert(resources, "oLogs")
table.insert(resources, "oBlur")
table.insert(resources, "oBone")
table.insert(resources, "oJSON")
table.insert(resources, "oPreview")
table.insert(resources, "oPreviewNew")
table.insert(resources, "oStreamer")
table.insert(resources, "oModelLoader")
table.insert(resources, "oAnticheat")
table.insert(resources, "oAnticheat2")
table.insert(resources, "oCustomMarker")
table.insert(resources, "oHandling")
table.insert(resources, "oChat")
table.insert(resources, "oSkinProtect")
table.insert(resources, "oLoading")
table.insert(resources, "o3DElements")
table.insert(resources, "oWL")

table.insert(resources, "npc_hlc")

-- Maps / Models
table.insert(resources, "oDestroyer")
table.insert(resources, "oWater")
table.insert(resources, "oMapfix")
table.insert(resources, "oNewDeliMap")
table.insert(resources, "oNewCityhallMap")
table.insert(resources, "oHospitalNewNewMap")
table.insert(resources, "oSampModels")
table.insert(resources, "oUjsag")
table.insert(resources, "oKukaMap")
table.insert(resources, "oFurnitures")
--table.insert(resources, "oVhMap")
table.insert(resources, "oBusMap")
table.insert(resources, "oIdlewoodMarket")
table.insert(resources, "oCarshop-main")
table.insert(resources, "oWellStackedMap")
table.insert(resources, "oCarrentMap")

table.insert(resources, "oTuningMap")
table.insert(resources, "oLezarasok")
table.insert(resources, "oIdlewoodMap")
table.insert(resources, "oNewPD")

-- Frakció mappolások
table.insert(resources, "oAlbanian-HQ")
table.insert(resources, "oLosZetasMap")
table.insert(resources, "oUjszerelo")
table.insert(resources, "oPiruMap")
table.insert(resources, "oPD_TrainingMap")
table.insert(resources, "oCrips_HQMap")
table.insert(resources, "oPDOutsideMap")
table.insert(resources, "oPDLefoglaltMap")
table.insert(resources, "oPDInteriorMap")
table.insert(resources, "oHospitalTexture")
table.insert(resources, "oHospitalInteriorMap")

table.insert(resources, "oWahChing")
table.insert(resources, "oHooverHQfix")
table.insert(resources, "oNewPD")

-- Interface
table.insert(resources, "oInfobox")
table.insert(resources, "oRadar")
table.insert(resources, "oSpeedo")
table.insert(resources, "oNametag")
table.insert(resources, "oInventory")
table.insert(resources, "oInterface")
table.insert(resources, "oHud")
table.insert(resources, "oCrosshair")

-- Gameplay
table.insert(resources, "oNoblur")
table.insert(resources, "oDeath")
table.insert(resources, "oAccount")
table.insert(resources, "oVehicle")
table.insert(resources, "oCarshop")
table.insert(resources, "oNewSkinshop")
table.insert(resources, "oInteriors")
table.insert(resources, "oAdmin")
table.insert(resources, "oAnims")
table.insert(resources, "oDashboard")
table.insert(resources, "oScoreboard")
table.insert(resources, "oTips")
table.insert(resources, "oJob")
table.insert(resources, "oLicenses")
table.insert(resources, "oCVEH")
table.insert(resources, "oLvl")
table.insert(resources, "oBus")
table.insert(resources, "oShop")
table.insert(resources, "oElementEditor")
table.insert(resources, "oGate")
table.insert(resources, "oIndex")
table.insert(resources, "oTraffipax")
--table.insert(resources, "oVHElements")
table.insert(resources, "oJob_Newspaper")
table.insert(resources, "oJob_Cleaner")
table.insert(resources, "oJob_PizzaMaker")
table.insert(resources, "oJob_FurnitureTransport")
table.insert(resources, "oPlacedo")
table.insert(resources, "oHifi")
table.insert(resources, "oCasino")
table.insert(resources, "oTuning")
table.insert(resources, "oQuitmessage")
table.insert(resources, "oFactionScripts")
table.insert(resources, "oInteraction")
table.insert(resources, "oBoneDamage")
table.insert(resources, "oFishing")
table.insert(resources, "oPhone")
table.insert(resources, "oMarket")
table.insert(resources, "oBank")
table.insert(resources, "oPayday")
table.insert(resources, "oSiren")
table.insert(resources, "oWeaponModels")


-- v0.9
table.insert(resources, "oPaintjobs")
table.insert(resources, "oBetterRain")
table.insert(resources, "oWeaponSkill")
table.insert(resources, "oPayNSpray")
table.insert(resources, "oJunkyard")
table.insert(resources, "oDrugs")
table.insert(resources, "oMinigames")
table.insert(resources, "oBankrob")
table.insert(resources, "oVehicleRadio")

table.insert(resources, "oJob_Cashier")
table.insert(resources, "oJob_Hacker")
table.insert(resources, "oTempomat")
table.insert(resources, "oForestAnimals")

-- v1
table.insert(resources, "oMDC")
table.insert(resources, "oFuel")
--table.insert(resources, "oCarRent")
table.insert(resources, "oTBoards")
table.insert(resources, "oTeslaCharger")
table.insert(resources, "oWeaponShop")
table.insert(resources, "oDriveschool")
table.insert(resources, "oVehicleExtras")
table.insert(resources, "oTreasureHunt")
table.insert(resources, "oExtraCommands")

-- v1.0.1
table.insert(resources, "oGNIproperty")
table.insert(resources, "oPremium")

table.insert(resources, "oBag")


-- v1.1
table.insert(resources, "oVehicleFixMarker")
--table.insert(resources, "oVendingMachine")
table.insert(resources, "oJob_Gardener")

table.insert(resources, "oTakaritoNew")
--table.insert(resources, "oMechanicLV")
--table.insert(resources, "oHospitalLV")
--table.insert(resources, "oTuningLV")
--table.insert(resources, "oVH-LV")
--table.insert(resources, "oBusLV")
table.insert(resources, "oWeaponSkins")
table.insert(resources, "oTeslaDriveAssist")
table.insert(resources, "oPlazaMap")

-- v2
table.insert(resources, "oDx")

table.insert(resources, "oBusinessWarhouseMap")
--table.insert(resources, "oNight")
--table.insert(resources, "oCarStealer")
table.insert(resources, "oPrinter")
--table.insert(resources, "oSeca")
table.insert(resources, "oRope")

table.insert(resources, "oTicket")
table.insert(resources, "oRoulette")

table.insert(resources, "oMushrooms")
table.insert(resources, "oBankMap")
table.insert(resources, "oEszakiEpitkezes")
table.insert(resources, "oWeaponCraft")
table.insert(resources, "oUjsagos_map")
table.insert(resources, "oBlueberryKikoto")
table.insert(resources, "oKoltoztetoMap")
table.insert(resources, "oGardenerMap")
table.insert(resources, "oGarageBid_map")
table.insert(resources, "oGarageBid")
table.insert(resources, "oBillboards")
table.insert(resources, "oPet")
table.insert(resources, "oDevtools")
table.insert(resources, "oHospitalNewMap")
table.insert(resources, "oCharCreateMap")
table.insert(resources, "oErtekbecsloMap")
table.insert(resources, "oConstructionMap1")
table.insert(resources, "oConstructionMap2")
table.insert(resources, "oShark")
table.insert(resources, "oBaysideMap")
table.insert(resources, "oUC_map_blueberry")
table.insert(resources, "oUC_map_eastls")
table.insert(resources, "oSormaffiaMap")
table.insert(resources, "oCluckinbellMap")
table.insert(resources, "oNewSzereloMap")
table.insert(resources, "oInteriorBuilding")
--table.insert(resources, "oRedLight")
table.insert(resources, "oPoliceCellsInterior_MAP")
table.insert(resources, "oJob_Crane")
table.insert(resources, "oPlaneCrash")
table.insert(resources, "oDilimoreGasStationMap")
table.insert(resources, "oPlant")
table.insert(resources, "oGoggle")
table.insert(resources, "oBillboards")
table.insert(resources, "oMexikoHQ")
table.insert(resources, "oBeerMaffiaInterior")
table.insert(resources, "oZacskosBirtok")
table.insert(resources, "oDaruparkolo")

table.insert(resources, "trailerDepoBuild")
table.insert(resources, "oParkolo")
table.insert(resources, "oLCMob")

table.insert(resources, "cigy")
table.insert(resources, "oGraffiti")
table.insert(resources, "oVelvettFKMap")
table.insert(resources, "oNAV")
table.insert(resources, "oNAVSkins")
-- Shaders 
table.insert(resources, "oShaders")
table.insert(resources, "oShader_Water")
table.insert(resources, "oShader_Bloom")
table.insert(resources, "oShader_Depth")
table.insert(resources, "oShader_HDTextures")
table.insert(resources, "oShader_VehicleReflection")
table.insert(resources, "oShader_Palette")
table.insert(resources, "oShader_MotionBlur")
table.insert(resources, "oShader_Vignette")
table.insert(resources, "oShader_Snow")
table.insert(resources, "oShader_FXAA")

-- DUDE 
table.insert(resources, "dude_telep")
table.insert(resources, "dude_map")
table.insert(resources, "dude_billboard")

--
table.insert(resources,"serialcheck")
table.insert(resources, "gtavbahama")


-- FK SKIN BETÖLTÉS
local resourceTable = getResources()
for resourceKey, resourceValue in ipairs(resourceTable) do
    local name = getResourceName(resourceValue)
    if string.match(name, "oFKSkins_") then
        table.insert(resources, name)
    end
end


print("[STARTER]: Resource-ok elinditasa elkezdodott.")

for k, v in ipairs(resources) do
    if startResource(getResourceFromName(v)) then
        print("[STARTER]: '"..v.."' resource sikeresen elindult.")
    end
    
    if k == #resources then
        print("[STARTER]: Osszes resource sikeresen betoltve!")
    end
end

setTimer(function()
    restartResource(getResourceFromName("oInventory"))
    restartResource(getResourceFromName("oSpeedo"))
    restartResource(getResourceFromName("oBillboards"))
    restartResource(getResourceFromName("oPlant"))
    restartResource(getResourceFromName("oPlaneCrash"))
end, 10000, 1)