🥳K-CRYPTO
Advanced Crypto Market (W.I.P)
Things on the Agenda
Server Exports
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 ownsLast updated