[SOLVED] Server callback ''esx_society:getSocietyMoney'' does not exist


1 Like

should be you dont have esx_society

I do have it

firstly sory my bad english
are you sure there is start esx_society on server.cfg
can write on cmd: ensure esx_society
if will error your script is shit
you can uploud new version: GitHub - esx-framework/esx_society: FXServer ESX Society

scrip error is you dont have under code


ESX.RegisterServerCallback('esx_society:getSocietyMoney', function(source, cb, societyName)
	local society = GetSociety(societyName)
	if society then
		TriggerEvent('esx_addonaccount:getSharedAccount', society.account, function(account)
			cb(account.money)
		end)
	else
		cb(0)
	end
end)

I already have it.