- remove callback calls
This commit is contained in:
1 parent
07530a8662
commit
d85a1300d5
16 files changed
+8
-388
No files matched your search
@@ -1,6 +1,5 @@
|
||||
---@diagnostic disable: duplicate-set-field
|
||||
Clothing = Clothing or {}
|
||||
Callback = Callback or Require("lib/callback/shared/callback.lua")
|
||||
|
||||
local ClothingBackup = {}
|
||||
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
---@diagnostic disable: duplicate-set-field
|
||||
Clothing = Clothing or {}
|
||||
Clothing.LastAppearance = Clothing.LastAppearance or {}
|
||||
Callback = Callback or Require("lib/callback/shared/callback.lua")
|
||||
|
||||
---This will get the name of the in use resource.
|
||||
---@return string
|
||||
|
||||
@@ -5,8 +5,6 @@ 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')
|
||||
|
||||
---Internal function to get the full appearance data including skin, model, and converted format
|
||||
---@param src number The server ID of the player
|
||||
|
||||
@@ -5,8 +5,6 @@ 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')
|
||||
|
||||
--- Internal function to get the full appearance data including skin, model, and converted format
|
||||
---@param src number The server ID of the player
|
||||
|
||||
@@ -5,8 +5,6 @@ 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')
|
||||
|
||||
--- Internal function to get the full appearance data including skin, model, and converted format
|
||||
---@param src number The server ID of the player
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
if GetResourceState('es_extended') ~= 'started' then return end
|
||||
|
||||
ESX = exports.es_extended:getSharedObject()
|
||||
Callback = Callback or Require("lib/callback/shared/callback.lua")
|
||||
|
||||
Framework = Framework or {}
|
||||
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
---@diagnostic disable: duplicate-set-field
|
||||
if GetResourceState('es_extended') ~= 'started' then return end
|
||||
|
||||
Prints = Prints or Require("lib/utility/shared/prints.lua")
|
||||
Callback = Callback or Require("lib/callback/shared/callback.lua")
|
||||
|
||||
ESX = exports.es_extended:getSharedObject()
|
||||
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
local resourceName = "okokPhone"
|
||||
if GetResourceState(resourceName) == 'missing' then return end
|
||||
Phone = Phone or {}
|
||||
Callback = Callback or Require("lib/callback/shared/callback.lua")
|
||||
|
||||
---This will get the name of the Phone system being being used.
|
||||
---@return string
|
||||
|
||||
@@ -17,7 +17,6 @@
|
||||
local resourceName = "okokPhone"
|
||||
if GetResourceState(resourceName) == 'missing' then return end
|
||||
Phone = Phone or {}
|
||||
Callback = Callback or Require("lib/callback/shared/callback.lua")
|
||||
|
||||
---This will get the name of the Phone system being being used.
|
||||
---@return string
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
---@diagnostic disable: duplicate-set-field
|
||||
---
|
||||
---TODO: fix points
|
||||
Target = Target or {}
|
||||
Ids = Ids or Require("lib/utility/shared/ids.lua")
|
||||
|
||||
local InteractIds = {}
|
||||
|
||||
|
||||
Reference in new issue
Block a user