[help] society account

can i TriggerEvent esx_addonaccount:getSharedAccount more than 2 society account ?
i try with

for j=1, #society, 1 do
	            if v.society == "police" then 
                 TriggerEvent('esx_addonaccount:getSharedAccount', 'society_police', function(account)
				 end)
				 account.addMoney(v.Moneyget)
		        elseif v.society == "mechanic" then			
		         TriggerEvent('esx_addonaccount:getSharedAccount', 'society_mechanic', function(account)
				 end)
				 account.addMoney(v.Moneyget)
				end 
			  end 	 

Error

attempt to index a nil value (local 'account')

Moved to #server-development:essentialmode :mascot:

any solution…

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.