[FREE] PEFCL - A banking resource (Standalone/ESX/QBCore)

Nice release!

False, some changes need to be made to es_extended. Like salary.

2 Likes

Can you elaborate? Would be great to confirm if there’s an issue here and that we can fix it.

How to fix that ?

1 Like

Works with qb-phone ?

2 Likes

Download the release, not the source code

No, but it works with NPWD, and you get an app for it for free :slight_smile:

1 Like

same…

We have been talking about it in the discord a bit. But the basic ESX salary through es_extended still goes to the basic bank. We have messed with this snippet below and some people have seen positive results but some have not.


	function self.addAccountMoney(accountName, money)
		if not tonumber(money) then
			print(('[^1ERROR^7] Tried To Set Account ^5%s^0 For Player ^5%s^0 To An Invalid Number!'):format(accountName, self.playerId))
			return
		end
		if money > 0 then
			local account, index = self.getAccount(accountName)
			if account then
	
				money = account.round and ESX.Math.Round(money) or money
				self.accounts[index].money += money
				if accountName == 'bank' then
					exports.pefcl:addBankBalance(self.source, {
						amount = money,
						message = "Bank Transfer"
					})
				end
				self.triggerEvent('esx:setAccountMoney', account)
			else
				print(('[^1ERROR^7] Tried To Set Add To Invalid Account ^5%s^0 For Player ^5%s^0!'):format(accountName, self.playerId))
			end
		else
			print(('[^1ERROR^7] Tried To Set Account ^5%s^0 For Player ^5%s^0 To An Invalid Number!'):format(accountName, self.playerId))
		end
	end

	function self.removeAccountMoney(accountName, money)
		if not tonumber(money) then
			print(('[^1ERROR^7] Tried To Set Account ^5%s^0 For Player ^5%s^0 To An Invalid Number!'):format(accountName, self.playerId))
			return
		end
		if money > 0 then
			local account, index = self.getAccount(accountName)
	
			if account then
				if accountName == 'bank' then
					exports.pefcl:removeBankBalance(self.playerId, {
						amount = ESX.Math.Round(money),
						message = reason and tostring(reason) or 'Untilted'
					})
					return
				end
	
				money = account.round and ESX.Math.Round(money) or money
				self.accounts[index].money -= money
	
				self.triggerEvent('esx:setAccountMoney', account)
			else
				print(('[^1ERROR^7] Tried To Set Add To Invalid Account ^5%s^0 For Player ^5%s^0!'):format(accountName, self.playerId))
			end
		else
			print(('[^1ERROR^7] Tried To Set Account ^5%s^0 For Player ^5%s^0 To An Invalid Number!'):format(accountName, self.playerId))
		end
	end

:wave: Also… same problem… :no_mouth:

Check latest version of pefcl-esx

@inQer You too

1 Like

Hello, I uploaded the latest version: pefcl and pefcl-esx.

I turned off qtarget in the config and the option to get to the bank is still missing…

UPDATE:
Everything is fine after update: v1.0.8. :money_with_wings: There are no payments coming into the account yet and it is not possible to create an account on ESX. ! :money_with_wings:

:+1: UPDATE: v1.0.10 All okey

Great!

2 Likes

Translation update

We now have translations for the following languages:

  • Bulgarian bg
  • Croatian hr
  • Czech cs
  • Danish da
  • Dutch nl
  • Finnish fi
  • French fr
  • German de
  • Lithuanian lt
  • Norwegian Bokmål nb
  • Polish pl
  • Spanish es
  • Swedish sv
4 Likes

need italian one

and how okok banking doing that ?

mean a payment from job not showing on bank ?

Everything works as it should. Just try it.

1 Like

thanks buddy

1 Like

i have this error help please:

SCRIPT ERROR: @qb-pefcl/server.lua:130: attempt to call a nil value (field ‘SyncMoney’)