mirror of
https://github.com/jimathy/rpemotes.git
synced 2026-04-23 01:41:56 -04:00
Changes: • cleaning • deleted unused code • indentation fixes • minor fixes (proper source usage in server side) • new feature to disable specific emotes from playing inside an vehicle
32 lines
1.0 KiB
Lua
32 lines
1.0 KiB
Lua
-- Emotes you add in the file will automatically be added to AnimationList.lua
|
|
-- If you have multiple custom list files they MUST be added between AnimationList.lua and Emote.lua in fxmanifest.lua!
|
|
-- Don't change 'CustomDP' it is local to this file!
|
|
|
|
local CustomDP = {}
|
|
|
|
CustomDP.Expressions = {}
|
|
CustomDP.Walks = {}
|
|
CustomDP.Shared = {}
|
|
CustomDP.Dances = {}
|
|
CustomDP.AnimalEmotes = {}
|
|
CustomDP.Exits = {}
|
|
CustomDP.Emotes = {}
|
|
CustomDP.PropEmotes = {}
|
|
|
|
-----------------------------------------------------------------------------------------
|
|
--| I don't think you should change the code below unless you know what you are doing |--
|
|
-----------------------------------------------------------------------------------------
|
|
|
|
-- Add the custom emotes to RPEmotes main array
|
|
for arrayName, array in pairs(CustomDP) do
|
|
if RP[arrayName] then
|
|
for emoteName, emoteData in pairs(array) do
|
|
RP[arrayName][emoteName] = emoteData
|
|
end
|
|
end
|
|
-- Free memory
|
|
CustomDP[arrayName] = nil
|
|
end
|
|
-- Free memory
|
|
CustomDP = nil
|