diff --git a/modules/clothing/fivem-appearance/server.lua b/modules/clothing/fivem-appearance/server.lua index 8076d2d..e6b7184 100644 --- a/modules/clothing/fivem-appearance/server.lua +++ b/modules/clothing/fivem-appearance/server.lua @@ -112,7 +112,7 @@ end function Clothing.OpenMenu(src) src = src and tonumber(src) assert(src, "src is nil") - TriggerClientEvent('qb-clothing:client:openMenu', src) + TriggerClientEvent('qb-clothing:client:openMenu', src) -- does this event work while on esx? end --- Event handler for when a player loads into the server @@ -120,7 +120,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 = QBCore.Functions.GetPlayer(src) -- this locks it to qbcore, we should either just call Framework.identifier or do the require. if not Player then return end local citId = Player.PlayerData.citizenid if not citId then return end @@ -201,6 +201,7 @@ RegisterCommand('clothing:openmenu', function(source, args, rawCommand) end, false) +-- This should be moved into unit tests -- RegisterCommand('clothing:crowley', function(source, args, rawCommand) -- local src = source -- Clothing.SetAppearance(src, { diff --git a/modules/clothing/fivem-appearance/shared.lua b/modules/clothing/fivem-appearance/shared.lua index 22a3a9b..e454553 100644 --- a/modules/clothing/fivem-appearance/shared.lua +++ b/modules/clothing/fivem-appearance/shared.lua @@ -38,4 +38,6 @@ -- function Clothing.ConvertData(data) -- return data --- end \ No newline at end of file +-- end + +-- This still needed? \ No newline at end of file diff --git a/modules/clothing/illenium-appearance/server.lua b/modules/clothing/illenium-appearance/server.lua index fead38a..3cf4014 100644 --- a/modules/clothing/illenium-appearance/server.lua +++ b/modules/clothing/illenium-appearance/server.lua @@ -123,7 +123,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 = QBCore.Functions.GetPlayer(src) -- this locks it to qbcore, we should either just call Framework.identifier or do the require. if not Player then return end local citId = Player.PlayerData.citizenid if not citId then return end @@ -162,7 +162,7 @@ Callback.Register('community_bridge:cb:GetAppearance', function(source) return Clothing.GetAppearance(src) end) - +-- The below Should go to unit test RegisterCommand('clothing:debug', function(source, args, rawCommand) local src = source Clothing.SetAppearance(src, { diff --git a/modules/clothing/illenium-appearance/shared.lua b/modules/clothing/illenium-appearance/shared.lua index a426031..b295fb6 100644 --- a/modules/clothing/illenium-appearance/shared.lua +++ b/modules/clothing/illenium-appearance/shared.lua @@ -219,3 +219,4 @@ -- ] -- } +-- this still needed? \ No newline at end of file diff --git a/modules/clothing/qb-clothing/server.lua b/modules/clothing/qb-clothing/server.lua index 4aa066d..afea8a7 100644 --- a/modules/clothing/qb-clothing/server.lua +++ b/modules/clothing/qb-clothing/server.lua @@ -4,7 +4,7 @@ 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() +QBCore = QBCore or exports['qb-core']:GetCoreObject() -- 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