[Free][Standalone]Money Script[Multi Language]

Lines (approximately) 800+
Requirements oxmysql
Support No
Github Link
Addons [Paid]Banking

import functions

put this in yoru fxmanifest.lua to use those functions, also recommended dependencies it

shared_scripts{
    '@nb-money/import.lua'
}

dependencies {
    'nb-money',
    ...
}

server functions

RemovePlayerMoney(player,accountType,amount,cb,reason,safe)
AddPlayerMoney(player,accountType,amount,cb,reason,safe)
TransferPlayerMoney(player,cb,amount,accountTypeFrom,accountTypeTo,outreason,inreason)
TransferPlayerMoneyToPlayer(player,targetplayer,cb,amount,typeFrom,typeTo,outreason,inreason)
GetMoneyLog(player,cb)
GetPlayerMoney(player,cb)

client functions

ChargerMoney(accountType,amount,cb,reason)
UpdatePlayerMpMoneyUI(cash,bank)
MoneyTransfedMessage(...)

configs

config.acceptedtable    to set what your money type exactly is in sql to avoid sql-injection
config.displayMPMoney   to display MP Money on the screenRightTop
config.fadeoutTimerMS   to set display off timer of MP Money  (less than or equal 0 = forever)
config.startingCash     to set starting cash if some new guy come
config.startingBank     to set starting bank if some new guy come
config.startingCryto    to set starting cryto if some new guy come
config.salary           to set using salary system
config.salaryAmount     to set salary amount to the bank 
config.salaryIntervalMS   to set salary timer MS 

commands

/givecash cashAmount serverid (if serverid is empty will get closest player as possible)
/paybank bankAmount serverid (if serverid is empty will get closest player as possible)
/rconpaybank bankAmount serverid (rcon adding a player bank)

8 Likes

negbook, u still their bro long time no see gosh

1 Like

sick resource man. I’m surprised no server (that I’ve seen so far) has thought to use the base gta money ui lol :smile:

3 Likes

my framework was based on, but i drop on using nui it’s more class i guess.

2 Likes

Great release!

3 Likes

Most of people using popular frameworks, they included money ui in the framework

1 Like

As you know most of people using pop framework, so… what is this script for? :joy:

1 Like

For that needed standalone money system. Some custom gamemode, some custom frameworks which have not money systrm, etc

can i you use this on a qbcore server?

if you rewrite the money update function. yes

How do I setup the OXMYSQL?