Skip to content

Latest commit

 

History

History
101 lines (83 loc) · 3.47 KB

README.md

File metadata and controls

101 lines (83 loc) · 3.47 KB

LJ BRAND

Formally known as lj-brand

ps-brand, formerly known as lj-brand, which was launched by loljoshie two years ago, is making a comeback. This script is a guide for newcomers, providing them with a checklist of essential elements to help get started on the server when they first join.

Dependencies

Key Features

  • Configurable logo (/logo)
  • Toggleable logo
  • Checkboxes react when focused / checked
  • Checklist requires you to checkmark all boxes
  • Button is disabled until requirements are met.
  • Easy to use and customize. For people that just want all branding in one place, and allow community to choose if they want to see the branding logo of the server while playing.

Previews

Checklist completed & Not completed

checklist

Checklist gif

checklist gif

Checklist clothing example

checklist example

Installation

Editing the default config list

config html config lua

Event: All you need is this event. It can go pretty much anywhere.

TriggerEvent('ps-brand:client:open')

Example:

We recommend putting it in qb-clothing where newcomers first create their characters on the server.

qb-clothing

  • Find this event on qb-clothing-client.lua around Line 1239
RegisterNetEvent('qb-clothes:client:CreateFirstCharacter')
  • Replace with this instead
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)
        Wait(1200)
        TriggerEvent('ps-brand:client:open')
end)    

Illenium-Appearance

  • Find the below event, around line 89 on /qb/main.lua.

  • Replace with this.

RegisterNetEvent("qb-clothes:client:CreateFirstCharacter", function()
    QBCore.Functions.GetPlayerData(function(pd)
        PlayerData = pd
        setClientParams()
        InitializeCharacter(Framework.GetGender(true))
        Wait(1200)
        TriggerEvent('lj-brand:client:open')
    end)
end)
  • Edit CSS to move the checklist to the right.
div#checklist {
  display: none;
  position: absolute;
  height: auto;
  max-width: 18%;
  right: 0%;
  background: #232833;
}