Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Citizen.CreateThread(function()
- while true do
- DisableControlAction( 0, 20, true )
- Wait(0)
- local playerPed = GetPlayerPed(-1)
- if IsControlJustPressed(1,244) then
- if IsPedInAnyVehicle(playerPed, false) then
- drawNotification("~r~ Du bist in einem Fahrzeug!")
- else
- TaskStartScenarioInPlace(playerPed, "WORLD_HUMAN_COP_IDLES",0, false)
- end
- elseif IsControlJustPressed(1,323) then
- if IsPedInAnyVehicle(playerPed, false) then
- drawNotification("~r~ Du bist in einem Fahrzeug!")
- else
- TaskStartScenarioInPlace(playerPed, "WORLD_HUMAN_PAPARAZZI", 0, false)
- end
- elseif IsControlJustPressed(1, 8) then
- if IsEntityPlayingAnim(playerPed, "reaction@intimidation@cop@unarmed", "intro", 3) then
- else
- ClearPedTasks(playerPed)
- end
- elseif IsControlJustPressed(1, 9) then
- if IsEntityPlayingAnim(playerPed, "reaction@intimidation@cop@unarmed", "intro", 3) then
- else
- ClearPedTasks(playerPed)
- end
- elseif IsDisabledControlJustPressed(1, 20) then
- if IsEntityPlayingAnim(playerPed, "reaction@intimidation@cop@unarmed", "intro", 3) then
- ClearPedTasks(playerPed)
- else
- loadAnimDict("reaction@intimidation@cop@unarmed")
- TaskPlayAnim(playerPed, "reaction@intimidation@cop@unarmed", "intro", 8.0, 2.0, -1, 50, 2.0, 0, 0, 0 )
- end
- elseif IsControlJustPressed(1, 166) then
- TaskStartScenarioInPlace(playerPed, "CODE_HUMAN_MEDIC_TIME_OF_DEATH", 0, false)
- elseif IsControlJustPressed(1, 167) then
- TaskStartScenarioInPlace(playerPed, "CODE_HUMAN_MEDIC_TEND_TO_DEAD", 0, false)
- end
- end
- end)
- function drawNotification(text)
- SetNotificationTextEntry("STRING")
- AddTextComponentString(text)
- DrawNotification(false, false)
- end
- function loadAnimDict( dict )
- while ( not HasAnimDictLoaded( dict ) ) do
- RequestAnimDict( dict )
- Citizen.Wait( 0 )
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement