- remove callback calls

This commit is contained in:
Mustachedom committed 2026-08-18 00:13:37 -07:00
1 parent 07530a8662
commit d85a1300d5
16 files changed
+8 -388

No files matched your search

+4 -6
View File
@@ -5,9 +5,7 @@ if GetResourceState('17mov_CharacterSystem') ~= 'missing' then return end
Clothing = Clothing or {}
Clothing.Players = {}
Callback = Callback or Require("lib/utility/shared/callbacks.lua")
Table = Table or Require('lib/utility/shared/tables.lua')
QBCore = QBCore or exports['qb-core']:GetCoreObject() -- probably easiest for now to call the Framework module
local qb = exports['qb-core'] -- probably easiest for now to call the Framework module
--- Internal function to get the full appearance data including skin, model, and converted format
---@param src number The server ID of the player
@@ -15,7 +13,7 @@ QBCore = QBCore or exports['qb-core']:GetCoreObject() -- probably easiest for no
function Clothing.GetFullAppearanceData(src)
src = src and tonumber(src)
assert(src, "src is nil")
local Player = QBCore.Functions.GetPlayer(src)
local Player = qb:GetPlayer(src)
if not Player then return end
local citId = Player.PlayerData.citizenid
if not citId then return end
@@ -66,7 +64,7 @@ end
function Clothing.SetAppearance(src, data, updateBackup, save)
src = src and tonumber(src)
assert(src, "src is nil")
local Player = QBCore.Functions.GetPlayer(src)
local Player = qb:GetPlayer(src)
if not Player then return end
local citId = Player.PlayerData.citizenid
if not citId then return end
@@ -136,7 +134,7 @@ end
AddEventHandler('community_bridge:Server:OnPlayerLoaded', function(src)
src = src and tonumber(src)
assert(src, "src is nil")
local Player = QBCore.Functions.GetPlayer(src)
local Player = qb:GetPlayer(src)
if not Player then return end
local citId = Player.PlayerData.citizenid
if not citId then return end