Skip to main content

deleteInvest

exports["RiP-Invest"]:deleteInvest(investSymbol, xPlayer) 

This function deletes a stock/crypto

Arguments

NameTypeOptionalExplenation
investSymbolStringNoStock/Crypto symbol (3 letters)
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]:deleteInvest("RIP", xPlayer)
if not state then
print("error occur")
end