ds-cutscene

Welcome your players with fantastic entry cutscene with GTA Character Lamar.

View on Tebex | CFX Fourm Post | Youtube Video | Discord

Installaction

Start

  1. Extract ds-cutscene.zip and place it into your resource folder.

  2. Setupconfig.lua (⚠️see #CONFIGURATION for instructions).

  3. Addensure ds-cutsceneto your server start config (place it anywhere below the framework resources).

Configuration

Please go through all configurable options & settings in config.lua and configure them to your server's preferences.

Also please read the comments at the end of each line, for a brief information on what the option does.

Add Trigger Event

put his line on top of the qb-clothing/client/main.lua

local CreateFirstCharacter = false

open qb-clothing/client/main.lua and replace this close callback.

RegisterNUICallback('close', function()
    SetNuiFocus(false, false)
    if CreateFirstCharacter then 
        TriggerEvent('ds-cutscene:start')
    end
    CreateFirstCharacter = false
    creatingCharacter = false
    disableCam()

    FreezeEntityPosition(PlayerPedId(), false)
end)

find qb-clothes:client:CreateFirstCharacter event and replace with this.

RegisterNetEvent('qb-clothes:client:CreateFirstCharacter')
AddEventHandler('qb-clothes:client:CreateFirstCharacter', function()
    CreateFirstCharacter = true
    QBCore.Functions.GetPlayerData(function(PlayerData)
        local skin = "mp_m_freemode_01"
        openMenu({
            {menu = "character", label = "Character", selected = true},
            {menu = "clothing", label = "Features", selected = false},
            {menu = "accessoires", label = "Accessories", selected = false}
        })

        if PlayerData.charinfo.gender == 1 then
            skin = "mp_f_freemode_01"
        end

        ChangeToSkinNoUpdate(skin)
        SendNUIMessage({
            action = "ResetValues",
        })
    end)
end)

Last updated