Skip to content

NB-Quality/nb-money

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code
This branch is 2 commits ahead of negbook:main.

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
log
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Lua 100.0%