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.
- qbcore framework
- interact-sound (if you want sound effects)
- 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.
TriggerEvent('ps-brand:client:open')
- 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)
-
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;
}