Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
- -- Animacao de Andar e Tossir
- -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
- Citizen.CreateThread(function()
- local dict = "timetable@gardener@smoking_joint"
- RequestAnimDict(dict)
- while not HasAnimDictLoaded(dict) do
- Citizen.Wait(100)
- end
- local handsup = false
- while true do
- Citizen.Wait(0)
- if IsControlJustPressed(1, 244) then --Start holding M
- if not handsup then
- TaskPlayAnim(GetPlayerPed(-1), dict, "idle_cough", 8.0, 8.0, -1, 50, 0, false, false, false)
- handsup = true
- else
- handsup = false
- ClearPedTasks(GetPlayerPed(-1))
- end
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement