[vRP Framework]-[Psycho Edited - FX 3.5]-[23/07/17]

what do i have to do then?

If you’re running your server on the same pc you run FiveM on then I just told you. If your server is elsewhere, I don’t know if you can.

the server is runned from another computer somewhere in the uk, and we are sitting here next to each other and only 1 of us can play

You need to enable using steam id for players.

You and your GF wont be able to play at the same time, in the same house, using the same internet connection as the server will be logging your internet connection IP, not your individual PC IP’s.

so we cant play at the same time no matter what i do?
cause we can play together on other servers?

where do i enable steam on servers cause if its where you need to remove the # then i already did it
@Knucklez

Hmm may have to look into what the steam Id’s option does, I havn’t had much to do with using the steam id’s but though it might have been something that would have helped.

Another thing to try is on one of the PC’s (Yours or GF’s) is to go through a VPN on that PC and see if that will work. Apart from that, Im out of ideas atm.

how can I display the bank money and the dirty money and the normal money??

1 Like

You need to edit your money.lua files as well as your language file. Check out vRP++ github how the money.lua are setup.

when i add my own vehicle in the ambulance garage, it removes all the garages on the map any fix?

I cant do it can yo provide me via pm both files?
thank you

Here’s a link to the lua files here and here and the language file here. That has everything you need to know how to display bank money. If you’re not able to figure out the coding, maybe switch to vRP++ it might be more suited for your purpose.

Error loading script modules/money.lua in resource vrp: modules/money.lua:7: attempt to index a nil value (field 'sql')
stack traceback:
        modules/money.lua:7: in main chunk
Failed to load script modules/money.lua.

:confused:

how can I change to new sql syntax? I’m new in lua :sweat:

Those files I linked work with vRP++ not Psycho edit but they have all the code that you need to get it to work with YOUR money.lua files. If I had to guess you just dropped those files into your server folder and expected it to work, but it doesn’t work like that. You need to edit your files.

:confused: But I don’t know how to do it, look at the pm please

Add this to cfg/lang/en.lua

display = "Cash:<span class=\"symbol\">$</span> {1}",
bdisplay = "Bank:<span class=\"symbol\">$</span> {1}",

Change your /cfg/money.lua to look like this:

local cfg = {}

-- start wallet/bank values
cfg.open_wallet = 150
cfg.open_bank = 1000

-- money display css
cfg.display_css = [[
.div_money{
  position: absolute;
  top: 100px;
  right: 20px;
  font-size: 1.3em;
  font-weight: bold;
  color: white;
  text-shadow: 3px 3px 2px rgba(0, 0, 0, 0.80);
}
.div_bmoney{
  position: absolute;
  top: 140px;
  right: 20px;
  font-size: 1.3em;
  font-weight: bold;
  color: white;
  text-shadow: 3px 3px 2px rgba(0, 0, 0, 0.80);
}

.div_money .symbol{
  font-size: 1.3em;
  color: #00ac51; 
}

.div_bmoney .symbol{
  font-size: 1.3em;
  color: #00ac51;
}
]]

return cfg

And your module/money.lua line 83 the set bank money function should look like:

function vRP.setBankMoney(user_id,value)
  local tmp = vRP.getUserTmpTable(user_id)
  if tmp then
    tmp.bank = value
  end
  local source = vRP.getUserSource(user_id)
  if source ~= nil then
    vRPclient.setDivContent(source,{"bmoney",lang.money.bdisplay({value})})
  end
end

And add this line in the “money hud” function:

vRPclient.setDiv(source,{"bmoney",cfg.display_css,lang.money.bdisplay({vRP.getBankMoney(user_id)})})
1 Like

everytime i add anything like a new car to a garage a new weapon to a gunshot the blips dissapear from the server map

And last question: where is the file to change the font?

You change that in the CSS section of money.lua.

For the menu itself /vrp/gui/design.css.

An example of mine https://i.imgur.com/Ptr7wU3.jpg

2 Likes

can you paste athe code to do it?