- init changes

This commit is contained in:
Mustachedom committed 2026-08-17 03:49:37 -07:00
1 parent 8accf38f97
commit d6cffd01bc
38 files changed
+325 -3377

No files matched your search

+1 -1
View File
@@ -43,7 +43,7 @@ function Clothing.GetAppearance(entity)
return skinData
end
Callback.Register('community_bridge:cb:GetAppearance', function()
lib.callback.register('community_bridge:cb:GetAppearance', function()
local ped = PlayerPedId()
if not ped or not DoesEntityExist(ped) then return end
local skinData = Clothing.GetAppearance(ped)
+1 -1
View File
@@ -22,7 +22,7 @@ end
---@param src number
---@return table
function Clothing.GetAppearance(src)
return Callback.Trigger('community_bridge:cb:GetAppearance', src)
return lib.callback.await('community_bridge:cb:GetAppearance', src)
end
---Apply skin data to a player
+1 -1
View File
@@ -147,7 +147,7 @@ function Clothing.OpenMenu(src)
end
---Callback handler for retrieving a player's appearance data
Callback.Register('community_bridge:cb:GetAppearance', function(source)
lib.callback.register('community_bridge:cb:GetAppearance', function(source)
local src = source
return Clothing.GetAppearance(src)
end)
+1 -1
View File
@@ -167,7 +167,7 @@ AddEventHandler('onResourceStart', function(resource)
end)
--- Callback handler for retrieving a player's appearance data
Callback.Register('community_bridge:cb:GetAppearance', function(source)
lib.callback.register('community_bridge:cb:GetAppearance', function(source)
local src = source
return Clothing.GetAppearance(src)
end)
@@ -160,7 +160,7 @@ AddEventHandler('onResourceStart', function(resource)
end)
--- Callback handler for retrieving a player's appearance data
Callback.Register('community_bridge:cb:GetAppearance', function(source)
lib.callback.register('community_bridge:cb:GetAppearance', function(source)
local src = source
return Clothing.GetAppearance(src)
end)
+1 -1
View File
@@ -168,7 +168,7 @@ AddEventHandler('onResourceStart', function(resource)
end)
--- Callback handler for retrieving a player's appearance data
Callback.Register('community_bridge:cb:GetAppearance', function(source)
lib.callback.register('community_bridge:cb:GetAppearance', function(source)
local src = source
return Clothing.GetAppearance(src)
end)