Files
rpemotes/client/AnimationListCustom.lua
Andyauk 1e4c679100 wrong code fix (#76)
* wrong version fix

* double code fix

double code fix
2022-12-01 11:17:17 +13:00

27 lines
722 B
Lua

-- Emotes you add in the file will automatically be added to AnimationList.lua
local CustomDP = {}
CustomDP.Expressions = {}
CustomDP.Walks = {}
CustomDP.Shared = {}
CustomDP.Dances = {}
CustomDP.AnimalEmotes = {}
CustomDP.Emotes = {}
CustomDP.PropEmotes = {}
-- Add the custom emotes
for arrayName, array in pairs(CustomDP) do
if RP[arrayName] then
for emoteName, emoteData in pairs(array) do
-- We don't add adult animations if not needed
if not emoteData.AdultAnimation or not Config.AdultEmotesDisabled then
RP[arrayName][emoteName] = emoteData
end
end
end
-- Free memory
CustomDP[arrayName] = nil
end
-- Free memory
CustomDP = nil