Customize

PlayerDisplay = true

RegisterKeyMapping
InventoryOpenControl = 'I'

1. 2150 - 2. 450 - 3. 4150
NotificationTime = 2150

DropMaxWeight = 200,
DropMaxSlot = 15,

TrunkMaxWeight = 45,
TrunkMaxSlot = 7,
  
GloveMaxWeight = 32,
GloveMaxSlot = 4,

PlayerMaxWeight = 67,
PlayerMaxSlot = 16,
PlayerInventoryLabel = 'My Bag',

Customize/Customize.lua
Customize = {
    Framework = "QBCore", -- QBCore | ESX | NewESX | OldQBCore (Write the framework you used as in the example)
    ServerName = 'UZ STORE',
    SecondTitle = 'for a quality roleplay!',


    PlayerDisplay = false,
    InventoryOpenControl = 'I',
    NotificationTime = 2150,

    PlayerMaxWeight = 120, -- KG
    PlayerMaxSlot = 30,
    PlayerInventoryLabel = 'My Bag',
    BlackInventoryLabel = 'Already in Use',

    DropMaxWeight = 200,
    DropMaxSlot = 30,
    
    TrunkMaxWeight = 45,
    TrunkMaxSlot = 25,
    
    GloveMaxWeight = 25,
    GloveMaxSlot = 5,
    

    StashPersonalizedLabel = ' Special',
    DefaultStashMaxSlot = 9,
    DefaultStashMaxWeight = 100,
}

Customize.VehFrontTrunk = {
    [`gp1`] = true,
    [`t20`] = true,
    [`re7b`] = true,
    [`ninef`] = true,
    [`adder`] = true,
    [`tyrus`] = true,
    [`tyrant`] = true,
    [`vagner`] = true,
    [`reaper`] = true,
    [`comet2`] = true,
    [`comet3`] = true,
    [`jester`] = true,
    [`jester2`] = true,
    [`cheetah`] = true,
    [`infernus`] = true,
    [`tempesta`] = true,
    [`zentorno`] = true,
    [`stingergt`] = true,
    [`pfister811`] = true,
    [`penetrator`] = true,
    [`prototipo`] = true,
    [`cheetah2`] = true,
    [`turismor`] = true,
    [`entityxf`] = true,
    [`turismo2`] = true,
    [`italigtb`] = true,
    [`surfer2`] = true,
    [`autarch`] = true,
    [`ardent`] = true,
    [`bullet`] = true,
    [`monroe`] = true,
    [`ninef2`] = true,
    [`surfer`] = true,
    [`osiris`] = true,
    [`nero2`] = true,
    [`vacca`] = true,
    [`nero`] = true,
    [`fmj`] = true,
}


CustomizeMarker = {

    Marker = function(Position)
        DrawMarker(20, Position.x, Position.y, Position.z, 0, 0, 0, 0, 0, 0, 0.3, 0.3, 0.3, 255, 128, 0, 150, false, false, false, 1, false, false, false)
    end,

    DrawTextDisplay = false,
    DrawText = function(Text, Position)
        local text = Text
        local onScreen, _x, _y = World3dToScreen2d(Position.x, Position.y, Position.z)
        local px, py, pz = table.unpack(GetGameplayCamCoords())
        SetTextScale(0.25, 0.25)
        SetTextFont(8)
        SetTextProportional(1)
        SetTextEntry("STRING")
        SetTextCentre(1)
        AddTextComponentString(text)
        DrawText(_x, _y)
        DrawRect(_x, _y + 0.0125, 0.015 + (string.len(text)) / 330, 0.03, 41, 11, 41, 68)
    end,

    MarkerNuiOpenDistance = 2.0,
    Open = function()
        if IsControlJustPressed(0, 38) then
            return true
        end
    end
}

Last updated