Config File

Config = {}

-- Language configuration (at the top)
Config.Locale = 'en' -- Default language: 'en' (English), 'es' (Spanish)

-- Commands configuration
Config.Commands = {
    cancelJob = 'canceljob' -- Command to cancel the job
}

-- General configuration
Config.MenuPosition = {x = -260.7664, y = -965.1359, z = 31.2242, h = 139.4371} -- Menu NPC position
Config.MenuNPCModel = 'a_m_m_business_01' -- Menu NPC model
Config.MenuBlip = {
    sprite = 408, -- Blip sprite
    color = 3,    -- Blip color
    scale = 0.8,  -- Blip scale
    name = 'Job Selector', -- Blip name
    shortRange = true -- Only visible on minimap when nearby
}

-- Progressbar configuration
Config.ProgressBar = {
    type = 'jobs_creator', -- Options: 'esx_progressbar' or 'jobs_creator'
    time = 10000,          -- Duration in milliseconds
    color = '#ff0000'      -- Color (used only with jobs_creator)
}

-- Jobs configuration
Config.Jobs = {
    electrician = {
        label = 'Electricista',
        MarkerPosition = {x = 739.2059, y = -2015.3590, z = 29.2920, h = 47.9846},
        ClothNPC = {x = 722.7125, y = -2016.3511, z = 29.2921, h = 259.4512, model = 'a_m_m_business_01'},
        WorkPoints = {
            {x = 741.5798, y = -1983.6432, z = 29.1882, h = 228.4018},
            {x = 747.8861, y = -1983.9899, z = 29.1824, h = 273.1005},
            {x = 744.1800, y = -1975.2153, z = 29.1901, h = 181.8222},
            {x = 741.5798, y = -1983.6432, z = 29.1882, h = 228.4018},
            {x = 747.8861, y = -1983.9899, z = 29.1824, h = 273.1005},
            {x = 744.1800, y = -1975.2153, z = 29.1901, h = 181.8222}
        },
        RewardNPC = {x = 729.3909, y = -1974.0980, z = 29.2920, h = 256.3082, model = 'a_m_m_business_01'},
        EnableVehicle = true,
        VehicleModel = 'burrito3',
        VehicleNPC = {x = 723.4310, y = -2009.5371, z = 29.2921, h = 261.0172, model = 'a_m_m_business_01'},
        VehicleSpawn = {x = 729.2703, y = -2016.6158, z = 29.2909, h = 351.3938},
        WorkAnimation = 'WORLD_HUMAN_HAMMERING',
        WorkText = 'Repairing...',
        Levels = {
            {level = 1, reward = 50},
            {level = 2, reward = 75},
            {level = 3, reward = 100},
            {level = 4, reward = 125},
            {level = 5, reward = 150}
        },
        WorkerClothes = {
            male = {
                ['tshirt_1'] = 15, ['tshirt_2'] = 0,
                ['torso_1'] = 109, ['torso_2'] = 0,
                ['arms'] = 0,
                ['pants_1'] = 16, ['pants_2'] = 0,
                ['shoes_1'] = 14, ['shoes_2'] = 0,
                ['helmet_1'] = 49, ['helmet_2'] = 0,
                ['bproof_1'] = 34, ['bproof_2'] = 1
            },
            female = {
                ['tshirt_1'] = 13, ['tshirt_2'] = 0,
                ['torso_1'] = 45, ['torso_2'] = 0,
                ['arms'] = 0,
                ['pants_1'] = 48, ['pants_2'] = 0,
                ['shoes_1'] = 25, ['shoes_2'] = 0,
                ['helmet_1'] = 49, ['helmet_2'] = 0,
                ['bproof_1'] = 11, ['bproof_2'] = 1
            }
        }
    },
    obra = {
        label = 'Obrero',
        MarkerPosition = {x = 712.6501, y = -283.8701, z = 59.1493, h = 181.0175},
        ClothNPC = {x = 712.6501, y = -283.8701, z = 59.1493, h = 181.0175, model = 'a_m_m_business_01'},
        WorkPoints = {
            {x = 706.7184, y = -304.3691, z = 60.2456, h = 189.1716},
            {x = 702.8798, y = -301.6709, z = 60.2377, h = 216.1667},
            {x = 696.1116, y = -307.6829, z = 60.2483, h = 274.8499},
            {x = 699.6072, y = -315.9684, z = 60.2488, h = 21.6969},
            {x = 705.9380, y = -314.5609, z = 60.2484, h = 354.4954},
            {x = 708.3380, y = -309.3101, z = 60.2466, h = 111.4966}
        },
        RewardNPC = {x = 712.6977, y = -298.7290, z = 59.2489, h = 102.1260, model = 'a_m_m_business_01'},
        EnableVehicle = false,
        VehicleModel = 'trash',
        VehicleNPC = {x = -335.7890, y = -1510.1234, z = 27.5398, h = 0.0, model = 'a_m_m_business_01'},
        VehicleSpawn = {x = -340.2345, y = -1505.6789, z = 27.5398, h = 90.0},
        WorkAnimation = 'WORLD_HUMAN_CONSTRUCTION',
        WorkText = 'Breaking stone...',
        Levels = {
            {level = 1, reward = 60},
            {level = 2, reward = 85},
            {level = 3, reward = 110},
            {level = 4, reward = 135},
            {level = 5, reward = 160}
        },
        WorkerClothes = {
            male = {
                ['tshirt_1'] = 15, ['tshirt_2'] = 0,
                ['torso_1'] = 109, ['torso_2'] = 0,
                ['arms'] = 0,
                ['pants_1'] = 16, ['pants_2'] = 0,
                ['shoes_1'] = 14, ['shoes_2'] = 0,
                ['helmet_1'] = 49, ['helmet_2'] = 0,
                ['bproof_1'] = 34, ['bproof_2'] = 1
            },
            female = {
                ['tshirt_1'] = 13, ['tshirt_2'] = 0,
                ['torso_1'] = 45, ['torso_2'] = 0,
                ['arms'] = 0,
                ['pants_1'] = 48, ['pants_2'] = 0,
                ['shoes_1'] = 25, ['shoes_2'] = 0,
                ['helmet_1'] = 49, ['helmet_2'] = 0,
                ['bproof_1'] = 11, ['bproof_2'] = 1
            }
        }
    },
    minero = {
        label = 'Minero',
        MarkerPosition = {x = 2951.4565, y = 2792.4565, z = 41.8565, h = 270.0},
        ClothNPC = {x = 2955.1234, y = 2790.9876, z = 41.8565, h = 90.0, model = 'a_m_m_business_01'},
        WorkPoints = {
            {x = 2945.6789, y = 2785.2345, z = 39.8565, h = 0.0, WorkProp = 'prop_rock_4_big'},
            {x = 2948.9876, y = 2795.7890, z = 39.8565, h = 90.0, WorkProp = 'prop_rock_4_big'},
            {x = 2952.4321, y = 2780.1234, z = 39.8565, h = 270.0, WorkProp = 'prop_rock_4_big'},
            {x = 2940.7890, y = 2790.6789, z = 39.8565, h = 45.0, WorkProp = 'prop_rock_4_big'},
            {x = 2950.2345, y = 2800.4321, z = 39.8565, h = 135.0, WorkProp = 'prop_rock_4_big'},
            {x = 2942.1234, y = 2788.4567, z = 39.8565, h = 180.0, WorkProp = 'prop_rock_4_big'}
        },
        RewardNPC = {x = 2958.4567, y = 2785.2345, z = 41.8565, h = 180.0, model = 'a_m_m_business_01'},
        EnableVehicle = false,
        VehicleModel = 'rubble',
        VehicleNPC = {x = 2955.7890, y = 2805.1234, z = 41.8565, h = 0.0, model = 'a_m_m_business_01'},
        VehicleSpawn = {x = 2950.2345, y = 2810.6789, z = 41.8565, h = 90.0},
        WorkAnimation = 'WORLD_HUMAN_HAMMERING',
        WorkText = 'Mining rock...',
        Levels = {
            {level = 1, reward = 70},
            {level = 2, reward = 95},
            {level = 3, reward = 120},
            {level = 4, reward = 145},
            {level = 5, reward = 170}
        },
        WorkerClothes = {
            male = {
                ['tshirt_1'] = 15, ['tshirt_2'] = 0,
                ['torso_1'] = 109, ['torso_2'] = 0,
                ['arms'] = 0,
                ['pants_1'] = 16, ['pants_2'] = 0,
                ['shoes_1'] = 14, ['shoes_2'] = 0,
                ['helmet_1'] = 49, ['helmet_2'] = 0,
                ['bproof_1'] = 34, ['bproof_2'] = 1
            },
            female = {
                ['tshirt_1'] = 13, ['tshirt_2'] = 0,
                ['torso_1'] = 45, ['torso_2'] = 0,
                ['arms'] = 0,
                ['pants_1'] = 48, ['pants_2'] = 0,
                ['shoes_1'] = 25, ['shoes_2'] = 0,
                ['helmet_1'] = 49, ['helmet_2'] = 0,
                ['bproof_1'] = 11, ['bproof_2'] = 1
            }
        }
    }
}

-- Locales (at the bottom)
Config.Locales = {
    ['en'] = {
        menu_title = 'Jobs Menu',
        start_job = 'Start job - Level ',
        job_started = 'Job started! Check the map to follow the route.',
        change_clothes = 'Press ~INPUT_CONTEXT~ to change clothes',
        work_prompt = 'Press ~INPUT_CONTEXT~ to work',
        claim_reward = 'Press ~INPUT_CONTEXT~ to claim your reward',
        reward_claimed = 'Reward claimed. Keep working!',
        job_cancelled = 'You have cancelled the job.',
        level_up = 'You have reached level %d! You will now earn $%d per round.',
        vehicle_prompt = 'Press ~INPUT_CONTEXT~ to take the vehicle',
        menu_prompt = 'Press ~INPUT_CONTEXT~ to talk to the manager'
    },
    ['es'] = {
        menu_title = 'Menú de Trabajos',
        start_job = 'Empezar trabajo - Nivel ',
        job_started = '¡Trabajo iniciado! Mira el mapa para seguir la ruta.',
        change_clothes = 'Presiona ~INPUT_CONTEXT~ para cambiarte de ropa',
        work_prompt = 'Presiona ~INPUT_CONTEXT~ para trabajar',
        claim_reward = 'Presiona ~INPUT_CONTEXT~ para reclamar tu recompensa',
        reward_claimed = 'Recompensa reclamada. ¡Sigue trabajando!',
        job_cancelled = 'Has cancelado el trabajo.',
        level_up = '¡Has subido al nivel %d! Ahora cobrarás $%d por ronda.',
        vehicle_prompt = 'Presiona ~INPUT_CONTEXT~ para coger el vehículo',
        menu_prompt = 'Presiona ~INPUT_CONTEXT~ para hablar con el encargado'
    }
}

Last updated