Guest User

Untitled

a guest
Oct 23rd, 2019
992
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.22 KB | None | 0 0
  1. function AddSubMenuDanceMenu(menu)
  2. animDanceMenu = _menuPool:AddSubMenu(menu.SubMenu, _U('animation_dance_title'))
  3.  
  4. local saluerItem = NativeUI.CreateItem(_U('animation_dance_saluate'), '')
  5. animDanceMenu.SubMenu:AddItem(saluerItem)
  6. local serrerItem = NativeUI.CreateItem(_U('animation_dance_serrer'), '')
  7. animDanceMenu.SubMenu:AddItem(serrerItem)
  8. local tchekItem = NativeUI.CreateItem(_U('animation_dance_tchek'), '')
  9. animDanceMenu.SubMenu:AddItem(tchekItem)
  10. local banditItem = NativeUI.CreateItem(_U('animation_dance_bandit'), '')
  11. animDanceMenu.SubMenu:AddItem(banditItem)
  12. local militaryItem = NativeUI.CreateItem(_U('animation_dance_military'), '')
  13. animDanceMenu.SubMenu:AddItem(militaryItem)
  14.  
  15. animDanceMenu.SubMenu.OnItemSelect = function(sender, item, index)
  16. if item == saluerItem then
  17. startAnim('gestures@m@standing@casual', 'gesture_hello')
  18. elseif item == serrerItem then
  19. startAnim('mp_common', 'givetake1_a')
  20. elseif item == tchekItem then
  21. startAnim('mp_ped_interaction', 'handshake_guy_a')
  22. elseif item == banditItem then
  23. startAnim('mp_ped_interaction', 'hugs_guy_a')
  24. elseif item == militaryItem then
  25. startAnim('mp_player_int_uppersalute', 'mp_player_int_salute')
  26. end
  27. end
  28. end
Add Comment
Please, Sign In to add comment