intelisense stuff

This commit is contained in:
MrNewb committed 2025-04-08 19:10:02 -04:00
1 parent e5190cdca0
commit 29d75163a9
13 files changed
+156 -23

No files matched your search

+10
View File
@@ -4,21 +4,31 @@ Clothing = Clothing or {}
ClothingBackup = {}
---This will set the peds skin data to the specified table. It will also store previous skin in the event it needs returned to original.
---@param data table
---@return boolean
Clothing.SetAppearance = function(data)
ClothingBackup = Clothing.GetAppearance()
Utility.SetEntitySkinData(cache.ped, data)
return true
end
---This will return a table of the players ped appearance
---@return table
Clothing.GetAppearance = function()
return Utility.GetEntitySkinData(cache.ped)
end
---This will return the peds clothing to the previously stored clothing
---@return boolean
Clothing.RestoreAppearance = function()
Utility.SetEntitySkinData(cache.ped, ClothingBackup)
return true
end
---This will reload the peds skin data from the backup table. This is used when the skin data is changed and needs to be reloaded.
---@return boolean
Clothing.ReloadSkin = function()
Utility.SetEntitySkinData(cache.ped, ClothingBackup)
return true