Cargobob Train Mission

gm2

Youtube
Tebex
Discord
You need my train script for this to work

Cargobob Train Mission

Mission: Retrieve a container from a moving train, deliver it to a drop point, and return the helicopter to a designated zone.

Mission Paths

1. Legal Path:
Get a mission from a MissionPed. A helicopter spawns near you. Enter the helicopter to start the mission.

2. Illegal Path:
Get a mission from another MissionPed. Infiltrate a guarded area, avoid detection, retrieve the key from one of the guards, and escape with the helicopter. Enter the helicopter to start the mission.

Config
Config = {
    -- Marker configuration (visual settings for the marker's appearance)
    marker = {
        index = 27,  -- The index ID of the marker to use
        colorInside = vec4(66, 221, 25, 100),  -- Color inside the marker (RGBA format)
        colorOutside = vec4(189, 34, 230, 100),  -- Color outside the marker (RGBA format)
    },

    -- Cargobob configuration for missions (Helicopter used for the illegal and legal missions)
    cargobob = {
        key = {
            name = "smodsk_heli_mission_key",  -- The key item required for the mission; must be in player inventory to start the helicopter
        },

        model = "cargobob",  -- Model name for the illegal version of the Cargobob
        model2 = "cargobob2",  -- Model name for the legal version of the Cargobob

        handlingModifiers = {  -- Modifications for the Cargobob when attaching a container
            fThrust = 1.9,  -- Thrust force multiplier when carrying the container
        }
    },

    -- Legal mission configuration
    legalMission = {
        cooldown = 60 * 15,  -- Time in seconds before the mission can be retried (15 minutes)
        reward = 2000,  -- Reward for completing the legal mission
        jobName = "",  -- Optional job requirement (leave empty if no specific job is required)
        startPoint = vec4(-1145.476, -2826.372, 13.0, 152.069),  -- Starting point of the mission
        heliSpawnPoint = vec4(-1178.236, -2845.716, 13.945, 129.65),  -- Helicopter spawn point
        heliReturnAreas = {  -- Areas where the helicopter can return (with a radius around each)
            {
                position = vec3(-1145.967, -2864.431, 13.946),
                radius = 20.0  -- Area radius
            },
        },
        dropAreas = {  -- Drop zones for the legal mission
            {
                position = vec3(1410.263, -2054.321, 51.998),
                radius = 20.0  -- Drop area radius
            },
            {
                position = vec3(-683.573, 217.691, 137.525),
                radius = 20.0,
            },
            {
                position = vec3(2770.019, 1404.016, 24.496),
                radius = 20.0
            },
            {
                position = vec3(-76.254, 6489.542, 31.489),
                radius = 20.0
            },
            {
                position = vec3(2295.749, 4868.716, 41.808),
                radius = 20.0
            },
        },
    },

    -- Illegal mission configuration
    illegalMission = {
        cooldown = 60 * 30,  -- Time in seconds before the illegal mission can be retried (30 minutes)
        reward = 4000,  -- Reward for completing the illegal mission
        jobName = "",  -- Optional job requirement (leave empty if no specific job is required)
        startPoint = vec4(-1681.312, 128.211, 62.803, 211.269),  -- Starting point of the illegal mission
        heliReturnAreas = {  -- Return areas for the illegal mission helicopter
            {
                position = vec3(-1757.318, -2941.137, 13.944),
                radius = 20.0
            },
            {
                position = vec3(-762.446, -1453.614, 5.000),
                radius = 20.0
            },
            {
                position = vec3(235.193, -3260.090, 40.538),
                radius = 20.0
            },
        },
        dropAreas = {  -- Drop zones for the illegal mission
            {
                position = vec3(3318.481, -84.566, 11.542),
                radius = 20.0
            },
            {
                position = vec3(3557.281, 2560.235, 4.606),
                radius = 20.0,
            },
            {
                position = vec3(3635.551, 5669.811, 8.792),
                radius = 20.0
            },
            {
                position = vec3(-2167.519, 5187.583, 15.953),
                radius = 20.0
            }
        },
    },

    -- Guard configuration (setting up attributes for guards in missions)
    guard = function(ped)
        SetPedSeeingRange(ped, 20.0)  -- Set the guard's vision range
        SetPedHearingRange(ped, 200.0)  -- Set the guard's hearing range
        SetPedAlertness(ped, 3)  -- Set the guard's alertness level (higher is more alert)
        SetEntityHealth(ped, 100.0)  -- Set the guard's health
    end,

    -- Mission area configuration for illegal missions (defining the restricted area and patrol points)
    missionArea = {  -- Illegal mission Area
        center = vec3(-2257.730, 290.264, 174.103),  -- Center of the mission area
        radius = 200.0,  -- Radius of the mission area
        helicopterPoints = {  -- Points where helicopters can be located
            vec4(-2194.406, 206.446, 194.601, 196.029),
        },
        patrolPoints = {  -- Patrol points for guards or NPCs in the mission area
            {
                -- Each patrol point defines a path between two points for the guards to follow
                {vec3(-2331.645, 364.707, 174.590), vec3(-2337.053, 366.453, 174.606)},
                {vec3(-2287.418, 269.420, 169.602), vec3(-2292.796, 267.267, 169.602)},
                {vec3(-2291.824, 369.444, 174.601), vec3(-2292.887, 371.756, 174.601)},
            },
            {
                {vec3(-2300.504, 254.296, 169.602), vec3(-2301.520, 256.596, 169.602)},
                {vec3(-2318.765, 262.316, 174.607), vec3(-2322.332, 271.935, 172.948)},
                {vec3(-2307.017, 290.788, 184.606), vec3(-2311.404, 308.578, 169.606)},
            },
            -- Additional patrol points...
        },
    },
    -- Additional configurations...
}
Code is accessible Partly
Subscription-based Yes and No
Lines (approximately) +1000
Requirements ox or qb, trains
Support Discord

Most of my scripts are escrowed. However, any code related to frameworks is always NON-ESCROWED. This ensures you can modify these scripts to work with other frameworks if needed.

Other products
casinoMachineshackingLaptopmetro