Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function AddSubMenuDanceMenu(menu)
- animDanceMenu = _menuPool:AddSubMenu(menu.SubMenu, _U('animation_dance_title'))
- local saluerItem = NativeUI.CreateItem(_U('animation_dance_saluate'), '')
- animDanceMenu.SubMenu:AddItem(saluerItem)
- local serrerItem = NativeUI.CreateItem(_U('animation_dance_serrer'), '')
- animDanceMenu.SubMenu:AddItem(serrerItem)
- local tchekItem = NativeUI.CreateItem(_U('animation_dance_tchek'), '')
- animDanceMenu.SubMenu:AddItem(tchekItem)
- local banditItem = NativeUI.CreateItem(_U('animation_dance_bandit'), '')
- animDanceMenu.SubMenu:AddItem(banditItem)
- local militaryItem = NativeUI.CreateItem(_U('animation_dance_military'), '')
- animDanceMenu.SubMenu:AddItem(militaryItem)
- animDanceMenu.SubMenu.OnItemSelect = function(sender, item, index)
- if item == saluerItem then
- startAnim('gestures@m@standing@casual', 'gesture_hello')
- elseif item == serrerItem then
- startAnim('mp_common', 'givetake1_a')
- elseif item == tchekItem then
- startAnim('mp_ped_interaction', 'handshake_guy_a')
- elseif item == banditItem then
- startAnim('mp_ped_interaction', 'hugs_guy_a')
- elseif item == militaryItem then
- startAnim('mp_player_int_uppersalute', 'mp_player_int_salute')
- end
- end
- end
Add Comment
Please, Sign In to add comment