ESX_License issue?

Not sure what I’m doing wrong but I know it’s probably more than one thing. No errors being returned but I feel as if I may have got a couple bits of code off? Anyone with knowledge of ESX_License help?

Server Code:

There is already a callback registered on server side for checking weapons. You can call it from Client side like this:

ESX.TriggerServerCallback('esx_license:checkLicense', function(hasWeaponLicense)
	if hasWeaponLicense then
		--do Something
	else
          --buy license
	end
end, GetPlayerServerId(PlayerId()), 'weapon')