Giter Club home page Giter Club logo

npwd_crypto's Introduction

Material-UI logo

NPWD Crypto

External NPWD app for buying, selling and trading crypto currency.

license GitHub all releases

Screenshots

Portfolio Page History Page Transaction Page

Setup and Configuration

Framework is automatically detected for ESX and QBCore

Installation

  • Download the npwd_crypto.zip from releases. DO NOT CHANGE THE RESOURCE NAME.
  • Unzip and add the resource to your server resources folder
  • Ensure npwd_crytpo BEFORE npwd
  • Add the app to NPWD config.json in the apps section "apps": ["npwd_crypto"]

ESX ONLY

Config.Accounts = {
	bank = {
		label = _U('account_bank'),
		round = true
	},
	black_money = {
		label = _U('account_black_money'),
		round = true
	},
	money = {
		label = _U('account_money'),
		round = true
	},
	crypto = {
	    label = "Crypto Currency",
	    round = false
	}
}

Config

{
  "maxHistory": 10,  // Maximum number of data points to store in history
  "logging": {
    "enabled": false, // Enables discord webhook logging of crypto price updates
    "webhook": "" // Discord webhook link
  },
  "tick": {
    "min": 15, // Minimum value the crypto can take
    "max": 250, // Maximum value
    "upDownRatio": 0.6, // [1.0-0.0] chance for crypto to go up
    "maxDeviation": 10, // Maximum amount the price can go up or down
    "interval": 15, // Time in minutes for each price change
    "crashChance": 0.05 // Chance% for price to reset to minimum
  }
}

Development

If you wish to make changes or build yourself you can clone the repository with git clone https://github.com/npwd-community/npwd_crypto.git then install the dependencies with yarn build or npm i.

You can either build the project with yarn build or alternatively, you can use yarn watch to put webpack in watch mode so that it will automatically rebuild after any changes you make.

npwd_crypto's People

Contributors

itschip avatar liamdormon avatar mycroft-studios avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

npwd_crypto's Issues

Cannot read property toString of null

Hello, keep getting this error on latest crypto & esx as well as latest npwd built (both scripts are built, not releases, but happens with release too). Didn't happen before I updated to latest esx I believe (few commits before rounding for each currency)

image preview of the error

image

Feature Request: Transaction Fees

[1]

  • Unfortunately, cannot do much in JS/TS so proposing this is best I can do, unless there are events sent out when selling / buying.

Make it so the bit value is followed by real life crypto (doesn't have to be real time, atleast estimated), perhaps give an option to choose from couple of cryptos to follow.

I've just read the closed issue that you declined it already, so yeah.

[2]
Add selling fee so people cannot buy & sell without any reduction (also to lower economy a bit :D)

[ script:npwd_crypto] [npwd_crypto] ERROR: No framework detected

I use esx legacy wiht ox inventory, what am i doing wrong?

this is my config:

{
"maxHistory": 10,
"logging": {
"enabled": false,
"webhook": ""
},
"tick": {
"min": 15,
"max": 250,
"upDownRatio": 0.6,
"maxDeviation": 10,
"interval": 15,
"crashChance": 0.05
}
}

Sell exploit still an issue

Good morning , The sell exploit rate limiter hasn't worked. The issue seems to be when they input more than 3 decimal places. For example 1.333 is fine but one 1.3333 causes an issue where it bugs out and allows them to keep selling . I've attached a video link to help with explaining what i mean , I think closing the sell UI and or limited text input to 2 decimal places would solve this issue.

2022-09-17.11-29-57.mp4

BUG: Application can't be loaded

It's impossible to load the application, I've tried loading it after npwd and before, I 've even started it before anything else. Each time I get this code.

Failed to load external app "npwd_crypto". Make sure it is started before NPWD. (webpack-internal:///69747:13109)
[object Event] (webpack-internal:///69747:13110)

I've tried rebuilding it myself, but same there nothing changes.

Language change.

Hello.

How can I change the language? I would like to translate it into another language!

Thanks for!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.