Giter Club home page Giter Club logo

cs_firstspawn's Introduction

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)

cs_firstspawn's People

Contributors

hhfw1 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.