I updated mine to take money from my inventory for Ads and Anonymous by commenting out the "getAccount('bank').money and adding getMoney.()
server.lua
Under Advertisement and Anonymous sections:
--local bankMoney = xPlayer.getAccount('bank').money
local bankMoney = xPlayer.getMoney()
Also added the price for the Ads and Anon message based on whatever you set in the config.lua to the "chat suggestions" line by changing the client.lua
if Config.EnableAdvertisementCommand then
TriggerEvent('chat:addSuggestion', '/'..Config.AdvertisementCommand, 'Make an advertisement for $'..Config.AdvertisementPrice..'', {
{ name="ad", help="advertisement message" },
})
end
if Config.EnableAnonymousCommand then
TriggerEvent('chat:addSuggestion', '/'..Config.AnonymousCommand, 'Send an anonymous message for $'..Config.AnonymousPrice..'', {
{ name="message", help="message to send" },
})
end
Also, in the config.lua there's a typo for the ['an_success'] Notification Text for the Price.
I changed that line to this:
['an_success'] = { title = 'ANONYMOUS', message = 'Advertisement successfully made for $${price}', time = 5000, type = 'success'},
You can also change the ad_success if you want to show $ instead
['ad_success'] = { title = 'ADVERTISEMENT', message = 'Advertisement successfully made for $${price}', time = 5000, type = 'success'},