Advertisement
Guest User

handsup

a guest
Mar 7th, 2019
326
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.58 KB | None | 0 0
  1. Citizen.CreateThread(function()
  2.     local dict = "missfra1mcs_2_crew_react"
  3.    
  4.     RequestAnimDict(dict)
  5.     while not HasAnimDictLoaded(dict) do
  6.         Citizen.Wait(100)
  7.     end
  8.     local handsup = false
  9.     while true do
  10.         Citizen.Wait(0)
  11.         if IsControlJustReleased(1, 323) then --Start holding X
  12.             if not handsup then
  13.                 TaskPlayAnim(GetPlayerPed(-1), dict, "handsup_standing_base", 8.0, 8.0, -1, 50, 0, false, false, false)
  14.                 handsup = true
  15.             else
  16.                 handsup = false
  17.                 ClearPedTasks(GetPlayerPed(-1))
  18.             end
  19.         end
  20.     end
  21. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement