Bitcoin Exchange 1.0.0

   (1 review)
Sign in to follow this  

1 Screenshot

About This File


This is a small script that allows players to buy/sell bitcoins.



  • Currency API (define a currency named "cash" after installing)
  • node-fetch (after installing, go to packages/bitcoin folder, launch command prompt/powershell from shift+rightclick and write "npm install", should download it)



Drag & drop to your server files folder.



The config.json file provides some options:

  • updateInterval - The time between BTC price updates, in milliseconds. Default value is 300000 aka 5 minutes.
  • markerColor - Color of the markers, [r, g, b, a] format.
  • markerRange - Range of the markers.
  • exchangeCoords - Positions where players can buy/sell bitcoins. Default values add 2 exchange locations: Lester's house and garment factory.



  • buybtc [amount]
  • sellbtc [amount]

Both commands need you to be inside a Bitcoin Exchange marker.



  • This script does not save data (bought bitcoins etc), saving should be handled by your gamemode since Currency API provides functions for that.
  • BTC price is provided by CoinDesk.
  • Currency API does not support floats so players can't buy less than 1 BTC.
  • Bogdanoff is watching
  • Like 1
  • Mask 1
  • Confused 1

User Feedback

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.




Amazing idea and code , Best like always 👍

Share this review

Link to review