Skip to content

Commit

Permalink
fix: pose names aren't translated
Browse files Browse the repository at this point in the history
  • Loading branch information
jjyao88 committed Jul 14, 2024
1 parent d7066f1 commit 0db4ac0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gamemode/modules/animations/sh_animations.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
local Anims = {}

-- Load animations after the languages for translation purposes
hook.Add("loadCustomDarkRPItems", "loadAnimations", function()
hook.Add("Think", "loadAnimations", function()
Anims[ACT_GMOD_GESTURE_BOW] = DarkRP.getPhrase("bow")
Anims[ACT_GMOD_TAUNT_MUSCLE] = DarkRP.getPhrase("sexy_dance")
Anims[ACT_GMOD_GESTURE_BECON] = DarkRP.getPhrase("follow_me")
Expand All @@ -11,6 +11,7 @@ hook.Add("loadCustomDarkRPItems", "loadAnimations", function()
Anims[ACT_GMOD_GESTURE_AGREE] = DarkRP.getPhrase("thumbs_up")
Anims[ACT_GMOD_GESTURE_WAVE] = DarkRP.getPhrase("wave")
Anims[ACT_GMOD_TAUNT_DANCE] = DarkRP.getPhrase("dance")
hook.Remove("Think", "loadAnimations")
end)

function DarkRP.addPlayerGesture(anim, text)
Expand Down

0 comments on commit 0db4ac0

Please sign in to comment.