🥳K-CRYPTO
Advanced Crypto Market (W.I.P)
Last updated
Advanced Crypto Market (W.I.P)
Last updated
Pretty simple to setup the config to your liking. Make Sure the currency is in all caps. Until i expand on the capabilities on the resource we are limited to 65 cryptos available in the market at a time. All cryptos follow the Real world Crypto market. Market refresh is how long in minutes between calls to the api for updating.
local cryptos = exports['k-crypto']:getCryptos()
--returns a table of the active cryptos in the config and all their data
exports['k-crypto']:setCrypto(source, cryptoName, amount)
-- sets specified crypto to specified amount
exports['k-crypto']:addCrypto(source, cryptoName, amount)
-- adds a specified amount of a specified crypto
exports['k-crypto']:removeCrypto(source, cryptoName, amount)
-- removes a specified amount of a specified crypto
local owned = exports['k-crypto']:getPlayerCryptos(source)
-- returns the data for the cryptos the player owns