# xakra\_publicjobs

## Requirements

* [vorp\_menu](https://github.com/VORPCORE/vorp_menu)
* [vorp\_core](https://github.com/VORPCORE/vorp-core-lua)
* [vorp\_inventory](https://github.com/VORPCORE/vorp_inventory-v2)
* [vorp\_progressbar](https://github.com/VORPCORE/vorp_progressbar)

***

## Installation

1. Copy the script into a folder (to choose) from the 'resources' folder.
2. Add 'ensure xakra\_publicjobs' in the 'Resources.cfg' document.
3. Check the 'config.lua' file and configure to adapt the script.

***

## Config & Framework

<details open>

<summary>config.lua</summary>

{% code expandable="true" %}

```lua
Config = {}

Config.Align = 'top-left'	-- align to menu

Config.Lang = 'en'  -- 'en', 'es' 

Config.Webhook = ''

Config.MaxSpeed = 1.5   -- number (Maximum walking speed while characters are carrying.)

-- ####################### LOCATIONS #######################
Config.Locations = {
	{	-- BLACKWATER
        Id = 'Blackwater',	-- Location ID
		Name = 'Public jobs',	-- Name and menu title
		Blip = { Enable = true, Sprite = 'blip_ambient_quartermaster', Modifier = 'BLIP_MODIFIER_MP_COLOR_11', },	-- enable/disable blip, and hash blip
		OpenCoords = vector3(-877.69, -1331.24, 43.98),	-- Npc position
        -- Jobs = {    -- List of jobs and grade to access menu or false
        --     { job = 'example1', grade = false },
        --     { job = 'example2', grade = false },
        -- },
		NPC = {
            Model = 'mp_u_f_m_buyer_improved_01',
            Coords = vector4(-878.06, -1333.75, 42.48, -64.30),
            Outfit = false,
            Scenario = 'PROP_HUMAN_SEAT_BENCH',
        },
        Hours = {
            Start = 6,	-- number (Time to start) or false
            End = 21,	-- number (Time the ends) or false
            Modifier = 'BLIP_MODIFIER_MP_COLOR_20',
        },
	},

    {
        Id = 'Valentine',	-- Location ID
        Name = 'Public jobs',	-- Name and menu title
        Blip = { Enable = true, Sprite = 'blip_ambient_quartermaster', Modifier = 'BLIP_MODIFIER_MP_COLOR_11', },	-- enable/disable blip, and hash blip
        OpenCoords = vector3(-328.94, 774.85, 117.44),	-- Npc position
        -- Jobs = {    -- List of jobs and grade to access menu or false
        --     { job = 'example1', grade = false },
        --     { job = 'example2', grade = false },
        -- },
        NPC = {
            Model = 'mp_u_f_m_buyer_improved_01',
            Coords = vector4(-329.38, 775.548, 115.9, -140.58),
            Outfit = false,
            Scenario = 'PROP_HUMAN_SEAT_BENCH',
        },
        Hours = {
            Start = 6,	-- number (Time to start) or false
            End = 21,	-- number (Time the ends) or false
            Modifier = 'BLIP_MODIFIER_MP_COLOR_20',
        },
    },
}

-- ####################### KEYS #######################
-- Keys: https://github.com/femga/rdr3_discoveries/tree/master/Controls
Config.Keys = {
    InteractJob = 'INPUT_INTERACT_OPTION1',
}

-- ####################### NAVIGATION COLORS #######################
Config.NavigationColors = {
    Blip = 'BLIP_MODIFIER_MP_COLOR_11',    -- Target blip color: https://github.com/femga/rdr3_discoveries/tree/master/useful_info_from_rpfs/blip_modifiers
    Route = 'COLOR_PLATFORM_GREEN', -- Color of the path route: https://github.com/femga/rdr3_discoveries/tree/master/useful_info_from_rpfs/colours
}

-- ####################### PROGRESBAR #######################
Config.ProgressBar = {
    type = 'innercircle',   -- 'linear', 'circle' or 'innercircle'
    color = '#0A4F05',  -- HTML Hex Color
}

-- ####################### PUBLIC JOBS #######################
Config.Labour = {
    {
        Locations = { 'Blackwater' },	-- { (Id of the locations or 'all')}
        PickupCoords = { coords = vector3(-781.76, -1230.44, 43.75), dist = 5 },
        Coords = {
            { coords = vector3(-771.9, -1239.43, 44.55), dist = 5 },
            { coords = vector3(-771.9, -1239.43, 44.55), dist = 5 },
            { coords = vector3(-734.19, -1293.09, 43.5), dist = 5 },
        },
        Time = 10000,   -- number (Milliseconds of time to complete the job using the progress bar)
        Cooldown = 1800,    -- number (Time to start job again) or false
        Reward = {
            Currencies = {
                { label = '$', type = 0, amount = { 2, 5 } },	-- type (0 = money, 1 = gold, 2 = rol), amount (number or { number_min, number_max })
                -- { label = ' gold', type = 1, amount = 220 },	-- type (0 = money, 1 = gold, 2 = rol), amount (number or { number_min, number_max })
            }, 
            Items = {
                -- { label = 'Soft Wood', item = 'wood', amount = 5 }, -- amount (number or { number_min, number_max })
                -- { label = 'Hard Wood', item = 'hwood', amount = 1 },    -- amount (number or { number_min, number_max })
			},
        },
    },
    {
        Locations = { 'Blackwater' },	-- { (Id of the locations or 'all')}
        PickupCoords = { coords = vector3(-781.76, -1230.44, 43.75), dist = 5 },
        Coords = {
            { coords = vector3(-734.19, -1293.09, 43.5), dist = 5 },
            { coords = vector3(-734.19, -1293.09, 43.5), dist = 5 },
        },
        Time = 10000,   -- number (Milliseconds of time to complete the job using the progress bar)
        Cooldown = 1800,    -- number (Time to start job again) or false
        Reward = {
            Currencies = {
                { label = '$', type = 0, amount = { 2, 5 } },	-- type (0 = money, 1 = gold, 2 = rol), amount (number or { number_min, number_max })
                -- { label = ' gold', type = 1, amount = 220 },	-- type (0 = money, 1 = gold, 2 = rol), amount (number or { number_min, number_max })
            }, 
            Items = {
                -- { label = 'Soft Wood', item = 'wood', amount = 5 }, -- amount (number or { number_min, number_max })
                -- { label = 'Hard Wood', item = 'hwood', amount = 1 },    -- amount (number or { number_min, number_max })
			},
        },
    },
    {
        Locations = { 'Valentine' },	-- { (Id of the locations or 'all')}
        PickupCoords = { coords = vector3(-236.96, 691.9, 113.43), dist = 5 },
        Coords = {
            { coords = vector3(-244.31, 768.35, 118.09), dist = 5 },
            { coords = vector3(-314.91, 730.0, 120.9), dist = 5 },
        },
        Time = 10000,   -- number (Milliseconds of time to complete the job using the progress bar)
        Cooldown = 1800,    -- number (Time to start job again) or false
        Reward = {
            Currencies = {
                { label = '$', type = 0, amount = { 2, 5 } },	-- type (0 = money, 1 = gold, 2 = rol), amount (number or { number_min, number_max })
                -- { label = ' gold', type = 1, amount = 220 },	-- type (0 = money, 1 = gold, 2 = rol), amount (number or { number_min, number_max })
            }, 
            Items = {
                -- { label = 'Soft Wood', item = 'wood', amount = 5 }, -- amount (number or { number_min, number_max })
                -- { label = 'Hard Wood', item = 'hwood', amount = 1 },    -- amount (number or { number_min, number_max })
			},
        },
    },
    {
        Locations = { 'Valentine' },	-- { (Id of the locations or 'all')}
        PickupCoords = { coords = vector3(-236.96, 691.9, 113.43), dist = 5 },
        Coords = {
            { coords = vector3(-169.11, 629.27, 114.03), dist = 5 },
            { coords = vector3(-340.08, 796.51, 117.12), dist = 5 },
        },
        Time = 10000,   -- number (Milliseconds of time to complete the job using the progress bar)
        Cooldown = 1800,    -- number (Time to start job again) or false
        Reward = {
            Currencies = {
                { label = '$', type = 0, amount = { 2, 5 } },	-- type (0 = money, 1 = gold, 2 = rol), amount (number or { number_min, number_max })
                -- { label = ' gold', type = 1, amount = 220 },	-- type (0 = money, 1 = gold, 2 = rol), amount (number or { number_min, number_max })
            }, 
            Items = {
                -- { label = 'Soft Wood', item = 'wood', amount = 5 }, -- amount (number or { number_min, number_max })
                -- { label = 'Hard Wood', item = 'hwood', amount = 1 },    -- amount (number or { number_min, number_max })
			},
        },
    },
}

Config.Distribute = {
    {
        Locations = { 'Blackwater' },	-- { (Id of the locations or 'all')}
        PickupCoords = { coords = vector3(-725.89, -1254.76, 44.73), dist = 5 },
        Coords = {
            { coords = vector3(-763.13, -1291.41, 43.84), dist = 5 },
            { coords = vector3(-785.89, -1323.9, 43.88), dist = 5 },
        },
        Cooldown = 1800,    -- number (Time to start job again) or false
        Reward = {
            Currencies = {
                { label = '$', type = 0, amount = { 2, 5 } },	-- type (0 = money, 1 = gold, 2 = rol), amount (number or { number_min, number_max })
                -- { label = ' gold', type = 1, amount = 220 },	-- type (0 = money, 1 = gold, 2 = rol), amount (number or { number_min, number_max })
            }, 
            Items = {
                -- { label = 'Soft Wood', item = 'wood', amount = 5 }, -- amount (number or { number_min, number_max })
                -- { label = 'Hard Wood', item = 'hwood', amount = 1 },    -- amount (number or { number_min, number_max })
			},
        },
    },
    {
        Locations = { 'Blackwater' },	-- { (Id of the locations or 'all')}
        PickupCoords = { coords = vector3(-832.08, -1304.77, 43.62), dist = 5 },
        Coords = {
            { coords = vector3(-815.35, -1319.81, 43.69), dist = 5 },
            { coords = vector3(-872.28, -1364.15, 43.53), dist = 5 },
        },
        Cooldown = 1800,    -- number (Time to start job again) or false
        Reward = {
            Currencies = {
                { label = '$', type = 0, amount = { 2, 5 } },	-- type (0 = money, 1 = gold, 2 = rol), amount (number or { number_min, number_max })
                -- { label = ' gold', type = 1, amount = 220 },	-- type (0 = money, 1 = gold, 2 = rol), amount (number or { number_min, number_max })
            }, 
            Items = {
                -- { label = 'Soft Wood', item = 'wood', amount = 5 }, -- amount (number or { number_min, number_max })
                -- { label = 'Hard Wood', item = 'hwood', amount = 1 },    -- amount (number or { number_min, number_max })
			},
        },
    },
    {
        Locations = { 'Valentine' },	-- { (Id of the locations or 'all')}
        PickupCoords = { coords = vector3(-255.46, 646.97, 113.38), dist = 5 },
        Coords = {
            { coords = vector3(-180.13, 632.42, 114.09), dist = 5 },
            { coords = vector3(-307.83, 777.35, 118.7), dist = 5 },
        },
        Cooldown = 1800,    -- number (Time to start job again) or false
        Reward = {
            Currencies = {
                { label = '$', type = 0, amount = { 2, 5 } },	-- type (0 = money, 1 = gold, 2 = rol), amount (number or { number_min, number_max })
                -- { label = ' gold', type = 1, amount = 220 },	-- type (0 = money, 1 = gold, 2 = rol), amount (number or { number_min, number_max })
            }, 
            Items = {
                -- { label = 'Soft Wood', item = 'wood', amount = 5 }, -- amount (number or { number_min, number_max })
                -- { label = 'Hard Wood', item = 'hwood', amount = 1 },    -- amount (number or { number_min, number_max })
			},
        },
    },
    {
        Locations = { 'Valentine' },	-- { (Id of the locations or 'all')}
        PickupCoords = { coords = vector3(-290.89, 736.91, 117.6), dist = 5 },
        Coords = {
            { coords = vector3(-286.34, 806.23, 119.39), dist = 5 },
            { coords = vector3(-310.55, 806.41, 118.98), dist = 5 },
        },
        Cooldown = 1800,    -- number (Time to start job again) or false
        Reward = {
            Currencies = {
                { label = '$', type = 0, amount = { 2, 5 } },	-- type (0 = money, 1 = gold, 2 = rol), amount (number or { number_min, number_max })
                -- { label = ' gold', type = 1, amount = 220 },	-- type (0 = money, 1 = gold, 2 = rol), amount (number or { number_min, number_max })
            }, 
            Items = {
                -- { label = 'Soft Wood', item = 'wood', amount = 5 }, -- amount (number or { number_min, number_max })
                -- { label = 'Hard Wood', item = 'hwood', amount = 1 },    -- amount (number or { number_min, number_max })
			},
        },
    },
}

Config.Sweep = {
    {
        Locations = { 'Blackwater' },	-- { (Id of the locations or 'all')}
        Coords = {
            { coords = vector3(-792.15, -1322.27, 43.64), dist = 5 },
            { coords = vector3(-807.8, -1319.82, 43.67), dist = 5 },
        },
        Time = 20000,   -- number (Milliseconds of time to complete the job using the progress bar)
        Cooldown = 1800,    -- number (Time to start job again) or false
        Reward = {
            Currencies = {
                { label = '$', type = 0, amount = { 2, 5 } },	-- type (0 = money, 1 = gold, 2 = rol), amount (number or { number_min, number_max })
                -- { label = ' gold', type = 1, amount = 220 },	-- type (0 = money, 1 = gold, 2 = rol), amount (number or { number_min, number_max })
            }, 
            Items = {
                -- { label = 'Soft Wood', item = 'wood', amount = 5 }, -- amount (number or { number_min, number_max })
                -- { label = 'Hard Wood', item = 'hwood', amount = 1 },    -- amount (number or { number_min, number_max })
			},
        },
    },
    {
        Locations = { 'Blackwater' },	-- { (Id of the locations or 'all')}
        Coords = {
            { coords = vector3(-865.15, -1366.39, 43.54), dist = 5 },
            { coords = vector3(-870.96, -1289.14, 43.1), dist = 5 },
        },
        Time = 20000,   -- number (Milliseconds of time to complete the job using the progress bar)
        Cooldown = 1800,    -- number (Time to start job again) or false
        Reward = {
            Currencies = {
                { label = '$', type = 0, amount = { 2, 5 } },	-- type (0 = money, 1 = gold, 2 = rol), amount (number or { number_min, number_max })
                -- { label = ' gold', type = 1, amount = 220 },	-- type (0 = money, 1 = gold, 2 = rol), amount (number or { number_min, number_max })
            }, 
            Items = {
                -- { label = 'Soft Wood', item = 'wood', amount = 5 }, -- amount (number or { number_min, number_max })
                -- { label = 'Hard Wood', item = 'hwood', amount = 1 },    -- amount (number or { number_min, number_max })
			},
        },
    },
    {
        Locations = { 'Valentine' },	-- { (Id of the locations or 'all')}
        Coords = {
            { coords = vector3(-307.77, 780.46, 118.77), dist = 5 },
            { coords = vector3(-307.56, 797.72, 118.96), dist = 5 },
        },
        Time = 20000,   -- number (Milliseconds of time to complete the job using the progress bar)
        Cooldown = 1800,    -- number (Time to start job again) or false
        Reward = {
            Currencies = {
                { label = '$', type = 0, amount = { 2, 5 } },	-- type (0 = money, 1 = gold, 2 = rol), amount (number or { number_min, number_max })
                -- { label = ' gold', type = 1, amount = 220 },	-- type (0 = money, 1 = gold, 2 = rol), amount (number or { number_min, number_max })
            }, 
            Items = {
                -- { label = 'Soft Wood', item = 'wood', amount = 5 }, -- amount (number or { number_min, number_max })
                -- { label = 'Hard Wood', item = 'hwood', amount = 1 },    -- amount (number or { number_min, number_max })
			},
        },
    },
    {
        Locations = { 'Valentine' },	-- { (Id of the locations or 'all')}
        Coords = {
            { coords = vector3(-284.09, 803.17, 119.38), dist = 5 },
            { coords = vector3(-245.1, 767.09, 118.21), dist = 5 },
        },
        Time = 20000,   -- number (Milliseconds of time to complete the job using the progress bar)
        Cooldown = 1800,    -- number (Time to start job again) or false
        Reward = {
            Currencies = {
                { label = '$', type = 0, amount = { 2, 5 } },	-- type (0 = money, 1 = gold, 2 = rol), amount (number or { number_min, number_max })
                -- { label = ' gold', type = 1, amount = 220 },	-- type (0 = money, 1 = gold, 2 = rol), amount (number or { number_min, number_max })
            }, 
            Items = {
                -- { label = 'Soft Wood', item = 'wood', amount = 5 }, -- amount (number or { number_min, number_max })
                -- { label = 'Hard Wood', item = 'hwood', amount = 1 },    -- amount (number or { number_min, number_max })
			},
        },
    },
}

Config.Sharpen = {
    {
        Locations = { 'Blackwater' },	-- { (Id of the locations or 'all')}
        Coord = { coords = vector3(-869.31, -1390.63, 42.49), dist = 5 }, -- Axe sharpening location on object p_grindingwheel01x
        Time = 60000,   -- number (Milliseconds of time to complete the job using the progress bar)
        DeliveryCoords = {  -- vector3 list to deliver the sharpened axes
            { coords = vector3(-943.82, -1238.97, 52.14), dist = 5 },
            { coords = vector3(-942.94, -1284.7, 50.81), dist = 5 },
        }, 
        Cooldown = 1800,    -- number (Time to start job again) or false
        Reward = {
            Currencies = {
                { label = '$', type = 0, amount = { 2, 5 } },	-- type (0 = money, 1 = gold, 2 = rol), amount (number or { number_min, number_max })
                -- { label = ' gold', type = 1, amount = 220 },	-- type (0 = money, 1 = gold, 2 = rol), amount (number or { number_min, number_max })
            }, 
            Items = {
                -- { label = 'Soft Wood', item = 'wood', amount = 5 }, -- amount (number or { number_min, number_max })
                -- { label = 'Hard Wood', item = 'hwood', amount = 1 },    -- amount (number or { number_min, number_max })
			},
        },
    },
    {
        Locations = { 'Valentine' },	-- { (Id of the locations or 'all')}
        Coord = { coords = vector3(-360.61, 801.91, 115.24), dist = 5 }, -- Axe sharpening location on object p_grindingwheel01x
        Time = 60000,   -- number (Milliseconds of time to complete the job using the progress bar)
        DeliveryCoords = {  -- vector3 list to deliver the sharpened axes
            { coords = vector3(-356.32, 756.2, 116.41), dist = 5 },
            { coords = vector3(-291.21, 861.57, 120.69), dist = 5 },
        }, 
        Cooldown = 1800,    -- number (Time to start job again) or false
        Reward = {
            Currencies = {
                { label = '$', type = 0, amount = { 2, 5 } },	-- type (0 = money, 1 = gold, 2 = rol), amount (number or { number_min, number_max })
                -- { label = ' gold', type = 1, amount = 220 },	-- type (0 = money, 1 = gold, 2 = rol), amount (number or { number_min, number_max })
            }, 
            Items = {
                -- { label = 'Soft Wood', item = 'wood', amount = 5 }, -- amount (number or { number_min, number_max })
                -- { label = 'Hard Wood', item = 'hwood', amount = 1 },    -- amount (number or { number_min, number_max })
			},
        },
    },
}

Config.ChopWood = {
    {
        Locations = { 'Blackwater' },	-- { (Id of the locations or 'all') }
        Coord = { coords = vector3(-944.51, -1283.62, 49.84), dist = 5 },  -- Location to cut logs on object p_axe01x, you can use the prop p_stumpwoodsplit02x
        Time = 80000,   -- number (Milliseconds of time to complete the job using the progress bar)
        DeliveryCoord = { coords = vector3(-869.05, -1302.28, 43.09), dist = 5 },  -- Coordinates for delivering the logs
        Cooldown = 1800,    -- number (Time to start job again) or false
        Reward = {
            Currencies = {
                { label = '$', type = 0, amount = { 2, 5 } },	-- type (0 = money, 1 = gold, 2 = rol), amount (number or { number_min, number_max })
                -- { label = ' gold', type = 1, amount = 220 },	-- type (0 = money, 1 = gold, 2 = rol), amount (number or { number_min, number_max })
            }, 
            Items = {
                -- { label = 'Soft Wood', item = 'wood', amount = 5 }, -- amount (number or { number_min, number_max })
                -- { label = 'Hard Wood', item = 'hwood', amount = 1 },    -- amount (number or { number_min, number_max })
			},
        },
    },
    {
        Locations = { 'Valentine' },	-- { (Id of the locations or 'all') }
        Coord = { coords = vector3(-355.97, 757.41, 115.43), dist = 5 },  -- Location to cut logs on object p_axe01x, you can use the prop p_stumpwoodsplit02x
        Time = 80000,   -- number (Milliseconds of time to complete the job using the progress bar)
        DeliveryCoord = { coords = vector3(-294.28, 861.19, 120.66), dist = 5 },  -- Coordinates for delivering the logs
        Cooldown = 1800,    -- number (Time to start job again) or false
        Reward = {
            Currencies = {
                { label = '$', type = 0, amount = { 2, 5 } },	-- type (0 = money, 1 = gold, 2 = rol), amount (number or { number_min, number_max })
                -- { label = ' gold', type = 1, amount = 220 },	-- type (0 = money, 1 = gold, 2 = rol), amount (number or { number_min, number_max })
            }, 
            Items = {
                -- { label = 'Soft Wood', item = 'wood', amount = 5 }, -- amount (number or { number_min, number_max })
                -- { label = 'Hard Wood', item = 'hwood', amount = 1 },    -- amount (number or { number_min, number_max })
			},
        },
    },
}

Config.WaterCarrying = {
    {
        Locations = { 'Blackwater' },	-- { (Id of the locations or 'all') }
        Coord = { coords = vector3(-727.35, -1382.15, 40.3), dist = 5 },    -- Water collection area
        DeliveryCoord = { coords = vector3(-785.53, -1324.02, 43.88), dist = 5 },  -- Area for delivering collected water
        Cooldown = 1800,    -- number (Time to start job again) or false
        Reward = {
            Currencies = {
                { label = '$', type = 0, amount = { 2, 5 } },	-- type (0 = money, 1 = gold, 2 = rol), amount (number or { number_min, number_max })
                -- { label = ' gold', type = 1, amount = 220 },	-- type (0 = money, 1 = gold, 2 = rol), amount (number or { number_min, number_max })
            },
            Items = {
                -- { label = 'Soft Wood', item = 'wood', amount = 5 }, -- amount (number or { number_min, number_max })
                -- { label = 'Hard Wood', item = 'hwood', amount = 1 },    -- amount (number or { number_min, number_max })
			},
        },
    },
    {
        Locations = { 'Blackwater' },	-- { (Id of the locations or 'all') }
        Coord = { coords = vector3(-713.21, -1200.71, 40.3), dist = 5 },  -- Water collection area
        DeliveryCoord = { coords = vector3(-814.84, -1319.08, 43.69), dist = 5 },  -- Area for delivering collected water
        Cooldown = 1800,    -- number (Time to start job again) or false
        Reward = {
            Currencies = {
                { label = '$', type = 0, amount = { 2, 5 } },	-- type (0 = money, 1 = gold, 2 = rol), amount (number or { number_min, number_max })
                -- { label = ' gold', type = 1, amount = 220 },	-- type (0 = money, 1 = gold, 2 = rol), amount (number or { number_min, number_max })
            },
            Items = {
                -- { label = 'Soft Wood', item = 'wood', amount = 5 }, -- amount (number or { number_min, number_max })
                -- { label = 'Hard Wood', item = 'hwood', amount = 1 },    -- amount (number or { number_min, number_max })
			},
        },
    },
    {
        Locations = { 'Valentine' },	-- { (Id of the locations or 'all') }
        Coord = { coords = vector3(-535.44, 904.4, 78.27), dist = 5 },  -- Water collection area
        DeliveryCoord = { coords = vector3(-326.04, 774.74, 117.46), dist = 5 },  -- Area for delivering collected water
        Cooldown = 1800,    -- number (Time to start job again) or false
        Reward = {
            Currencies = {
                { label = '$', type = 0, amount = { 2, 5 } },	-- type (0 = money, 1 = gold, 2 = rol), amount (number or { number_min, number_max })
                -- { label = ' gold', type = 1, amount = 220 },	-- type (0 = money, 1 = gold, 2 = rol), amount (number or { number_min, number_max })
            },
            Items = {
                -- { label = 'Soft Wood', item = 'wood', amount = 5 }, -- amount (number or { number_min, number_max })
                -- { label = 'Hard Wood', item = 'hwood', amount = 1 },    -- amount (number or { number_min, number_max })
			},
        },
    },
    {
        Locations = { 'Valentine' },	-- { (Id of the locations or 'all') }
        Coord = { coords = vector3(-535.44, 904.4, 78.27), dist = 5 },  -- Water collection area
        DeliveryCoord = { coords = vector3(-311.38, 806.54, 118.98), dist = 5 },  -- Area for delivering collected water
        Cooldown = 1800,    -- number (Time to start job again) or false
        Reward = {
            Currencies = {
                { label = '$', type = 0, amount = { 2, 5 } },	-- type (0 = money, 1 = gold, 2 = rol), amount (number or { number_min, number_max })
                -- { label = ' gold', type = 1, amount = 220 },	-- type (0 = money, 1 = gold, 2 = rol), amount (number or { number_min, number_max })
            },
            Items = {
                -- { label = 'Soft Wood', item = 'wood', amount = 5 }, -- amount (number or { number_min, number_max })
                -- { label = 'Hard Wood', item = 'hwood', amount = 1 },    -- amount (number or { number_min, number_max })
			},
        },
    },
}
```

{% endcode %}

</details>

<details open>

<summary>framework</summary>

client.lua

{% code expandable="true" %}

```lua
local VORPcore = exports.vorp_core:GetCore()

TriggerEvent("vorp_menu:getData", function(call)
    MenuData = call
end)

local progressbar = exports.vorp_progressbar:initiate()

function ProgressBar(Text, Time, cb)
    progressbar.start(Text, Time, function()
        return cb()
    end, Config.ProgressBar.type, Config.ProgressBar.color)
end

function NotifyTip(text, time)
    VORPcore.NotifyTip(text, time)
end
```

{% endcode %}

server.lua

{% code expandable="true" %}

```lua
local VORPcore = exports.vorp_core:GetCore()

function NotifyObjective(source, text, time)
    VORPcore.NotifyObjective(source, text, time)
end

function NotifyAvanced(source, title, dict, icon, color, time)
    VORPcore.NotifyAvanced(source, title, dict, icon, color, time)
end

function GetCharacter(source)
    -- .identifier
    -- .charIdentifier
    -- .firstname
    -- .lastname
    -- .job
    -- .jobGrade
    return VORPcore.getUser(source).getUsedCharacter
end

function addCurrency(source, currency, amount)
    local Character = GetCharacter(source)
    Character.addCurrency(currency, amount) -- Add money 1000 | 0 = money, 1 = gold, 2 = rol
end

function addItem(source, item, amount, metadata)
    exports.vorp_inventory:addItem(source, item, amount, metadata)
end

function AddWebhook(title, webhook, description, color, name, logo, footerlogo, avatar)
    VORPcore.AddWebhook(title, webhook, description, color, name, logo, footerlogo, avatar)
end
```

{% endcode %}

</details>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://xakra-scripts.gitbook.io/xakra-scripts-docs/redm-docs/xakra_publicjobs.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
