๐Ÿง™โ€โ™€๏ธCreate Our First Mission

Here we will teach you how to create your first basic mission.

Time to think!

Here are some questions that will help you prepare for your mission:

  • What kind of mission do I want to create? (for example, a delivery mission, a rescue mission, a pursuit mission, etc.)

  • What is the main objective of the mission?

  • What should the players achieve?

  • How many players can participate in the mission? What challenges or obstacles will the players face during the mission?

  • Are there specific requirements that players must meet to access the quest? (for example, player level, jobs or skills unlocked)

  • How will the mission progress?

  • Will there be stages or sub-goals?

  • What kind of rewards or consequences will there be for completing or failing the mission?

  • Will additional resources, such as vehicles or peds, be reinforced for the mission?

  • What additional customization or configuration options should the mission offer?

Let's go

Mission Type: Delivery Players: Singles Main objective: Make a successful delivery without facing enemies.

Mission details:

  • The mission will consist of two objectives.

  • Each objective will consist of three stages.

  • There will be no enemies or combat during the mission.

  • If the player fails the mission, they will be teleported back to the start of the mission to try again. If the player successfully completes the mission, they will receive a monetary reward.

Additional considerations:

  • No prerequisites are required to access the mission, any player can participate.

  • The mission can be adapted to an urban or rural setting, depending on your preference.

  • You can add additional items, such as obstacles along the way or challenges related to delivery, to increase the difficulty of the mission.

  • Remember that these are just general mission details.

  • You can customize and develop each stage and objective with more details, creating specific scenarios and clear required instructions for the player.

  • You can also adjust the rewards and difficulty based on your preferences and the characteristics of the game you are working on.

Game Logic

  • Objective 1: "Get the chicken"

    • Stage 1: Go to the chicken place

    • Stage 2: Complete the keyboard challenge.

    • Stage 3: Move 30 meters away from the challenge point.

  • Objective 2: "The Delivery"

    • Step 1: Go to the delivery area

    • Stage 2: knock on the door and wait

    • Stage 3: Back to business

Preparing Missions Model

RegisterMission({
    Id = "chicken_mission",
    Name = "Hello Chickens!",
    Description = "Delivery the chicken to the grandma",

    Options = {
        Conditions = {
            AccessJobs = { "any" },
            PreCondition = function(gameVariables)
                return true            
            end,
        },
        Rewards = {
            Custom = function(playerId)
                
            end
        },

        GameVariables = { }
    },

    Objectives = {
        [1] = {
            Description = "",
            
            Stages = {
                [1] = {
                    onFinish = function()

                    end,

                    onStart = function()
                        return GM().NextStage(true)
                    end,

                    isComplete = false, -- Internal variable, dont touch.
                },
                [2] = {
                    onFinish = function()

                    end,

                    onStart = function()
                        return GM().NextStage(true)
                    end,

                    isComplete = false, -- Internal variable, dont touch.
                },
                [3] = {
                    onFinish = function()

                    end,

                    onStart = function()
                        return GM().NextStage(true)
                    end,

                    isComplete = false, -- Internal variable, dont touch.
                },
            },

            onStageComplete = function(stageId)
            
            end,

            Preload = function(startStage)
 
                return startStage
            end,

            onComplete = function(isForced, reason)

            end,

            isComplete = false -- Internal variable, dont touch.
        },
        [2] = {
            Description = "",
            
            Stages = {
                [1] = {
                    onFinish = function()

                    end,

                    onStart = function()
                        return GM().NextStage(true)
                    end,

                    isComplete = false, -- Internal variable, dont touch.
                },
                [2] = {
                    onFinish = function()

                    end,

                    onStart = function()
                        return GM().NextStage(true)
                    end,

                    isComplete = false, -- Internal variable, dont touch.
                },
                [3] = {
                    onFinish = function()

                    end,

                    onStart = function()
                        return GM().NextStage(true)
                    end,

                    isComplete = false, -- Internal variable, dont touch.
                },
            },

            onStageComplete = function(stageId)
            
            end,

            Preload = function(startStage)
 
                return startStage
            end,

            onComplete = function(isForced, reason)

            end,

            isComplete = false -- Internal variable, dont touch.
        }
    },

    onStart = function(startObjective)
 
        return startObjective
    end,

    onComplete = function(isForced, reason)
        print("Mission is finished: ", reason)
    end
})

Last updated

Was this helpful?