[Release] [Standalone] T-Notify - A Simple and Highly-Customizable Notification System

Any ideas why the notifications might work in some places of code but not others, for example the code below, the top half with the *** works and displays the notification about already having a license, however the bottom half where i add a notification for job check does not work.

            ***if IsInWeaponShopZone(coords) then***
***                if IsControlJustReleased(0, 38) then***
***					ESX.TriggerServerCallback('esx_license:checkLicense', function(hasWeaponLicense)***
***						if hasWeaponLicense then***
***							OpenShopInv("weaponshop")***
***							Citizen.Wait(2000)***
***						else***
***							exports['t-notify']:Custom({***
***    style  =  'success',***
***    duration  =  10500,***
***    title  =  'License Error',***
***    message  =  'You already have a license',***
***    sound  =  true***
***})***
						end
					end, GetPlayerServerId(PlayerId()), Config.License.Weapon)
                end
            end
            if IsInPoliceShopZone(coords) then
                if IsControlJustReleased(0, 38) then
                    if ESX.GetPlayerData().job.name == Config.InventoryJob.Police then
						ESX.TriggerServerCallback('esx_license:checkLicense', function(hasWeaponLicense)
							if hasWeaponLicense then
								OpenShopInv("policeshop")
								Citizen.Wait(2000)
							else

exports['t-notify']:Custom({
    style  =  'success',
    duration  =  10500,
    title  =  'Access Problem',
    message  =  'Only police can access this shop',
    sound  =  true
})
							end
						end, GetPlayerServerId(PlayerId()), Config.License.Police)
					end
                end
            end