diff --git a/[core]/esx_notify/Notify.lua b/[core]/esx_notify/Notify.lua index d47066f8..5bddf2cc 100644 --- a/[core]/esx_notify/Notify.lua +++ b/[core]/esx_notify/Notify.lua @@ -1,6 +1,6 @@ local Debug = ESX.GetConfig().EnableDebug ----@param type string the notification type +---@param notificatonType string the notification type ---@param length number the length of the notification ---@param message any the message :D local function Notify(notificatonType, length, message) @@ -36,6 +36,7 @@ RegisterNetEvent("ESX:Notify", Notify) if Debug then RegisterCommand("oldnotify", function() + ---@diagnostic disable-next-line ESX.ShowNotification("No Waypoint Set.", true, false, 140) end) diff --git a/[core]/esx_progressbar/Progress.lua b/[core]/esx_progressbar/Progress.lua index e5994ef5..0f018f5f 100644 --- a/[core]/esx_progressbar/Progress.lua +++ b/[core]/esx_progressbar/Progress.lua @@ -16,7 +16,7 @@ local function Progressbar(message, length, Options) end end if CurrentProgress.FreezePlayer then - FreezeEntityPosition(PlayerPedId(), CurrentProgress.FreezePlayer) + FreezeEntityPosition(ESX.PlayerData.ped, CurrentProgress.FreezePlayer) end SendNUIMessage({ type = "Progressbar", @@ -30,7 +30,7 @@ local function Progressbar(message, length, Options) else ClearPedTasks(ESX.PlayerData.ped) if CurrentProgress.FreezePlayer then - FreezeEntityPosition(PlayerPedId(), false) + FreezeEntityPosition(ESX.PlayerData.ped, false) end if CurrentProgress.onFinish then CurrentProgress.onFinish() @@ -50,7 +50,7 @@ local function CancelProgressbar() }) ClearPedTasks(ESX.PlayerData.ped) if CurrentProgress.FreezePlayer then - FreezeEntityPosition(PlayerPedId(), false) + FreezeEntityPosition(ESX.PlayerData.ped, false) end if CurrentProgress.onCancel then CurrentProgress.onCancel()