Skip to main content

createCrypto

exports["RiP-Invest"]:createCrypto(cryptoName, cryptoSymbol, cryptoPrice, xPlayer) 

This function creates a new cryptocurrency

Arguments

NameTypeOptionalExplenation
cryptoNameStringNoCrypto name
cryptoSymbolStringNoCrypto symbol (3 letters)
cryptoPriceIntegerNoCrypto price
xPlayerObjectYesESX xPlayer object

Returned Value

Returns true if the stock was created. If errors occur, the function returns false

Example

local xPlayer = ESX.GetPlayerFromId(source)

local state = exports['RiP-Invest]:createCrypto("RiP Development", "RIP", 999, xPlayer)
if not state then
print("error occur")
end