Advertisement
Guest User

Untitled

a guest
May 24th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.84 KB | None | 0 0
  1. Citizen.CreateThread(function()
  2. while true do
  3. Wait(0)
  4. local playerPed = GetPlayerPed(-1)
  5. if IsControlJustPressed(1,244) then
  6. if IsPedInAnyVehicle(playerPed, false) then
  7. drawNotification("~r~ Du bist in einem Fahrzeug!")
  8. else
  9. TaskStartScenarioInPlace(playerPed, "WORLD_HUMAN_COP_IDLES",0, false)
  10. end
  11. elseif IsControlJustPressed(1,323) then
  12. if IsPedInAnyVehicle(playerPed, false) then
  13. drawNotification("~r~ Du bist in einem Fahrzeug!")
  14. else
  15. TaskStartScenarioInPlace(playerPed, "WORLD_HUMAN_PAPARAZZI", 0, false)
  16. end
  17. elseif IsControlJustPressed(1, 8) then
  18. if IsEntityPlayingAnim(playerPed, "reaction@intimidation@cop@unarmed", "intro", 3) then
  19.  
  20. else
  21. ClearPedTasks(playerPed)
  22.  
  23. end
  24. elseif IsControlJustPressed(1, 9) then
  25. if IsEntityPlayingAnim(playerPed, "reaction@intimidation@cop@unarmed", "intro", 3) then
  26.  
  27. else
  28. ClearPedTasks(playerPed)
  29.  
  30. end
  31. elseif IsControlJustPressed(1, 20) then
  32. if IsEntityPlayingAnim(playerPed, "reaction@intimidation@cop@unarmed", "intro", 3) then
  33. ClearPedTasks(playerPed)
  34. else
  35. loadAnimDict("reaction@intimidation@cop@unarmed")
  36. TaskPlayAnim(playerPed, "reaction@intimidation@cop@unarmed", "intro", 8.0, 2.0, -1, 50, 2.0, 0, 0, 0 )
  37. end
  38. elseif IsControlJustPressed(1, 166) then
  39. TaskStartScenarioInPlace(playerPed, "CODE_HUMAN_MEDIC_TIME_OF_DEATH", 0, false)
  40. elseif IsControlJustPressed(1, 167) then
  41. TaskStartScenarioInPlace(playerPed, "CODE_HUMAN_MEDIC_TEND_TO_DEAD", 0 false)
  42. end
  43. end
  44. end)
  45.  
  46. function drawNotification(text)
  47. SetNotificationTextEntry("STRING")
  48. AddTextComponentString(text)
  49. DrawNotification(false, false)
  50. end
  51.  
  52. function loadAnimDict( dict )
  53. while ( not HasAnimDictLoaded( dict ) ) do
  54. RequestAnimDict( dict )
  55. Citizen.Wait( 0 )
  56. end
  57. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement