Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local _ = function(k,...) return ImportPackage("i18n").t(GetPackageName(),k,...) end
- local danceIds = {
- dance_1 = "DANCE01",
- dance_2 = "DANCE02",
- dance_3 = "DANCE03",
- }
- local actionIds = {
- action_1 = "SIT01",
- action_2 = "LAY01",
- action_3 = "CALLME",
- }
- local diversIds = {
- divers_1 = "CLAP3",
- divers_2 = "CALL_SOMEONE",
- divers_3 = "LAUGH",
- divers_4 = "SALUTE2",
- divers_5 = "KUNGFU",
- divers_6 = "DABSAREGAY",
- divers_7 = "CROSSARMS",
- divers_8 = "THINKING01",
- divers_9 = "FISHING",
- }
- AddRemoteEvent("ServerAnimationMenu", function(player)
- local playersIds = GetAllPlayers()
- CallRemoteEvent(player, "OpenAnimationMenu", danceIds, actionIds, diversIds, playersIds)
- end)
- AddRemoteEvent("PlayerSetDance", function(playerid, animationName)
- for k,v in pairs(danceIds) do
- if k == animationName then
- SetPlayerAnimation(playerid, v)
- end
- end
- end)
- AddRemoteEvent("PlayerSetAction", function(playerid, animationName)
- for k,v in pairs(actionIds) do
- if k == animationName then
- SetPlayerAnimation(playerid, v)
- end
- end
- end)
- AddRemoteEvent("PlayerSetDivers", function(playerid, animationName)
- for k,v in pairs(diversIds) do
- if k == animationName then
- SetPlayerAnimation(playerid, v)
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement