- Katılım
- 4 yıl 9 gün
- Mesajlar
- 366
whistle = false
function getSurrenderStatus()
return whistle
end
RegisterNetEvent('whistle:Status')
AddEventHandler('whistle:Status',function(event,source)
if whistle then
TriggerServerEvent("whistle:Hands",event,source,true)
else
TriggerServerEvent("whistle:Hands",event,source,false)
end
end)
Citizen.CreateThread(function()
while true do
Citizen.Wait(0)
local lPed = GetPlayerPed(-1)
RequestAnimDict("timetable@ron@ig_3_couch")
if not IsPedInAnyVehicle(lPed, false) and not IsPedSwimming(lPed) and not IsPedShooting(lPed) and not IsPedClimbing(lPed) and not IsPedCuffed(lPed) and not IsPedDiving(lPed) and not IsPedFalling(lPed) and not IsPedJumping(lPed) and not IsPedJumpingOutOfVehicle(lPed) and IsPedOnFoot(lPed) and not IsPedRunning(lPed) and not IsPedUsingAnyScenario(lPed) and not IsPedInParachuteFreeFall(lPed) then
if IsControlPressed(1, 74) then
if DoesEntityExist(lPed) then
SetCurrentPedWeapon(lPed, 0xA2719263, true)
Citizen.CreateThread(function()
RequestAnimDict("timetable@ron@ig_3_couch")
while not HasAnimDictLoaded("timetable@ron@ig_3_couch") do
Citizen.Wait(100)
end
if not whistle then
whistle = true
TaskPlayAnim(lPed, "timetable@ron@ig_3_couch", "base", 2.7, 2.7, -1, 11, 0, 0, 0, 0)
end
end)
end
end
end
if IsControlReleased(1, 74) then
if DoesEntityExist(lPed) then
Citizen.CreateThread(function()
RequestAnimDict("timetable@ron@ig_3_couch")
while not HasAnimDictLoaded("timetable@ron@ig_3_couch") do
Citizen.Wait(100)
end
if whistle then
whistle = false
ClearPedSecondaryTask(lPed)
end
end)
end
end
end
end)
OLAY ŞU BEN BİR TUŞA ANİMASYON ATADIM(OTURMA ANİMASYONU) H TUŞUNA BASINCA ANİMASYON DEVREYE GİRİYOR BENİM İSTEDİĞİM ŞU TEKRAR H TUŞUNA BASINCA ANİMASYON İPTAL OLSUN BUNU NASIL EKLEYEBİLİRİM ?