diff --git a/resource/interface/client/progress.lua b/resource/interface/client/progress.lua index 6f43d08..ac760ce 100644 --- a/resource/interface/client/progress.lua +++ b/resource/interface/client/progress.lua @@ -17,6 +17,7 @@ local playerState = LocalPlayer.state ---@field allowRagdoll? boolean ---@field allowCuffed? boolean ---@field allowFalling? boolean +---@field allowSwimming? boolean ---@field canCancel? boolean ---@field anim? { dict?: string, clip: string, flag?: number, blendIn?: number, blendOut?: number, duration?: number, playbackRate?: number, lockX?: boolean, lockY?: boolean, lockZ?: boolean, scenario?: string, playEnter?: boolean } ---@field prop? ProgressPropProps | ProgressPropProps[] @@ -38,6 +39,7 @@ local function interruptProgress(data) if not data.allowRagdoll and IsPedRagdoll(cache.ped) then return true end if not data.allowCuffed and IsPedCuffed(cache.ped) then return true end if not data.allowFalling and IsPedFalling(cache.ped) then return true end + if not data.allowSwimming and IsPedSwimming(cache.ped) then return true end end local isFivem = cache.game == 'fivem'