fx_version 'cerulean'
game 'gta5'

name 'rv_world_cleanup'
author 'OpenAI'
description 'Configurable ambient world cleanup for ESX servers'
version '1.0.0'

client_script 'dist/client/rv_world_cleanup.Client.net.dll'

files {
    'dist/client/*.dll'
}

convar_category 'RV World Cleanup' {
    'Steuert Ambient-NPCs, Fahrzeuge und Szenarien direkt über server.cfg.',
    {
        {'System aktivieren', '$rv_cleanup_enable', 'CV_BOOL', true},
        {'Ambient-NPCs deaktivieren', '$rv_cleanup_disable_ambient_peds', 'CV_BOOL', true},
        {'Szenario-NPCs deaktivieren', '$rv_cleanup_disable_scenario_peds', 'CV_BOOL', true},
        {'Ambient-Fahrzeuge deaktivieren', '$rv_cleanup_disable_ambient_vehicles', 'CV_BOOL', true},
        {'Geparkte Fahrzeuge deaktivieren', '$rv_cleanup_disable_parked_vehicles', 'CV_BOOL', true},
        {'Dispatch/Wanted deaktivieren', '$rv_cleanup_disable_dispatch_services', 'CV_BOOL', true},
        {'Zufalls-Cops deaktivieren', '$rv_cleanup_disable_random_cops', 'CV_BOOL', true},
        {'Müllwagen deaktivieren', '$rv_cleanup_disable_garbage_trucks', 'CV_BOOL', true},
        {'Zufalls-Boote deaktivieren', '$rv_cleanup_disable_random_boats', 'CV_BOOL', true},
        {'Welt-Szenarien unterdrücken', '$rv_cleanup_disable_scenario_actions', 'CV_BOOL', true},
        {'Bestehende Ambient-NPCs löschen', '$rv_cleanup_delete_existing_peds', 'CV_BOOL', true},
        {'Bestehende Ambient-Fahrzeuge löschen', '$rv_cleanup_delete_existing_vehicles', 'CV_BOOL', true},
        {'Radius für Bereinigung', '$rv_cleanup_clear_radius', 'CV_COMBI', 175, 25, 500},
        {'Intervall in Millisekunden', '$rv_cleanup_clear_interval_ms', 'CV_COMBI', 10000, 1000, 60000}
    }
}

fxdk_watch_command 'dotnet' { 'watch', '--project', 'Client/rv_world_cleanup.Client.csproj', 'publish', '--configuration', 'Release' }
fxdk_build_command 'dotnet' { 'publish', 'Client/rv_world_cleanup.Client.csproj', '--configuration', 'Release' }
