Skip to content

hhfw1/cs_firstspawn

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 

CodeStudio Intro Cutscene Start with AI Taxi | Standalone

As this is a free open-source script, there is no personal support available due to time constraints. If you require personal support, please consider using Tebex

https://discord.gg/ESwSKregtt

  1. Event to Trigger the cutscene
TriggerEvent('cs:introCinematic:start')

qb-clothing

  1. On top of qb-clothing/client/main.lua add
    newCreate = false
  1. Replace This:
    RegisterNetEvent('qb-clothes:client:CreateFirstCharacter')
    AddEventHandler('qb-clothes:client:CreateFirstCharacter', function()
        QBCore.Functions.GetPlayerData(function(pData)
            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 pData.charinfo.gender == 1 then
                skin = "mp_f_freemode_01"
            end

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

With This:

    RegisterNetEvent('qb-clothes:client:CreateFirstCharacter')
    AddEventHandler('qb-clothes:client:CreateFirstCharacter', function()
        newCreate = true
        QBCore.Functions.GetPlayerData(function(pData)
            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 pData.charinfo.gender == 1 then
                skin = "mp_f_freemode_01"
            end

            ChangeToSkinNoUpdate(skin)
            SendNUIMessage({
                action = "ResetValues",
            })
        end)
    end)
  1. Replace This:
    local function SaveSkin()
        local model = GetEntityModel(PlayerPedId())
        local clothing = json.encode(skinData)
        TriggerServerEvent("qb-clothing:saveSkin", model, clothing)
    end

With This:

    local function SaveSkin()
        local model = GetEntityModel(PlayerPedId())
        local clothing = json.encode(skinData)
        TriggerServerEvent("qb-clothing:saveSkin", model, clothing)
        if newCreate then
            newCreate = false
            TriggerEvent('cs:introCinematic:start')
        end
    end

illenium-appearance/fivem-appearance

  1. On top of illenium-appearance/client/framework/qb/main.lua add
    newCreate = false
  1. Go here illenium-appearance/client/framework/qb/main.lua Replace This:
    RegisterNetEvent("qb-clothes:client:CreateFirstCharacter", function()
        QBCore.Functions.GetPlayerData(function(pd)
            PlayerData = pd
            setClientParams()
            InitializeCharacter(Framework.GetGender(true))
        end)
    end)

With This:

    RegisterNetEvent("qb-clothes:client:CreateFirstCharacter", function()
        newCreate = true
        QBCore.Functions.GetPlayerData(function(pd)
            PlayerData = pd
            setClientParams()
            InitializeCharacter(Framework.GetGender(true))
        end)
    end)
  1. Go here illenium-appearance/game/nui.lua Replace This:
    RegisterNUICallback("appearance_save", function(appearance, cb)
        cb(1)
        client.wearClothes(appearance, "head")
        client.wearClothes(appearance, "body")
        client.wearClothes(appearance, "bottom")
        client.exitPlayerCustomization(appearance)
    end)

With This:

    RegisterNUICallback("appearance_save", function(appearance, cb)
        cb(1)
        client.wearClothes(appearance, "head")
        client.wearClothes(appearance, "body")
        client.wearClothes(appearance, "bottom")
        client.exitPlayerCustomization(appearance)
        if newCreate then
            newCreate = false
            TriggerEvent('cs:introCinematic:start')
        end
    end)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages