From f9e52655bfa2876cef4864d8548773f5ccfcabc6 Mon Sep 17 00:00:00 2001 From: AvaN0x Date: Mon, 22 Aug 2022 18:14:19 +0200 Subject: [PATCH] perf: :zap: optimization of idle performances --- client/Emote.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/Emote.lua b/client/Emote.lua index 7e45a44..a4b3e89 100644 --- a/client/Emote.lua +++ b/client/Emote.lua @@ -19,7 +19,7 @@ local PtfxNoProp = false Citizen.CreateThread(function() while true do - if IsPedShooting(PlayerPedId()) and IsInAnimation then + if IsInAnimation and IsPedShooting(PlayerPedId()) then EmoteCancel() end