Documentation, deprecated old points, removed incomplete clothing bridge.
Documentation added, deprecated old points, removed incomplete clothing bridge. I migrated the points into the new system and added deprecation notices. Cleaned some white spaces because they made me unhappy. Added GetStreetNameAtCoords as it may be useful to return a string for others. Added support for lb-tablet dispatch alerts (thank you loaf)
This commit is contained in:
1 parent
3e936d2c1c
commit
6bdee6ad91
27 files changed
+276
-411
No files matched your search
@@ -1,31 +0,0 @@
|
||||
if GetResourceState('fivem-appearance') ~= 'started' then return end
|
||||
Clothing = Clothing or {}
|
||||
|
||||
Clothing.SetAppearance = function(data)
|
||||
local clothing = {}
|
||||
if GetEntityModel(cache.ped) == `mp_m_freemode_01` then
|
||||
clothing = data.male
|
||||
else
|
||||
clothing = data.female
|
||||
end
|
||||
ClothingBackup = exports['fivem-appearance']:getPedAppearance(cache.ped)
|
||||
exports['fivem-appearance']:setPedAppearance(cache.ped, clothing)
|
||||
return true
|
||||
end
|
||||
|
||||
Clothing.GetAppearance = function()
|
||||
return exports['fivem-appearance']:getPedAppearance(cache.ped)
|
||||
end
|
||||
|
||||
Clothing.RestoreAppearance = function()
|
||||
if not next(ClothingBackup) then
|
||||
return false
|
||||
end
|
||||
exports['fivem-appearance']:setPedAppearance(cache.ped, ClothingBackup)
|
||||
return true
|
||||
end
|
||||
|
||||
Clothing.ReloadSkin = function()
|
||||
TriggerEvent("fivem-appearance:client:reloadSkin", true)
|
||||
return true
|
||||
end
|
||||
Reference in new issue
Block a user