for these who aren’t capable finding cause for script breaking.

Add

  while ESX == nil do
    TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end)
    Citizen.Wait(0)
  end

replace

showHelpNotification

with

ESX.ShowNotification

and delete

function showHelpNotification(msg)
    BeginTextCommandDisplayHelp("STRING")
    AddTextComponentSubstringPlayerName(msg)
    EndTextCommandDisplayHelp(0, 0, 1, -1)
end

Cause is BeginTextCommandDisplayHelp("STRING") not available anymore