createCrypto
exports["RiP-Invest"]:createCrypto(cryptoName, cryptoSymbol, cryptoPrice, xPlayer)
This function creates a new cryptocurrency
Arguments
Name | Type | Optional | Explenation |
---|---|---|---|
cryptoName | String | No | Crypto name |
cryptoSymbol | String | No | Crypto symbol (3 letters) |
cryptoPrice | Integer | No | Crypto price |
xPlayer | Object | Yes | ESX 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