deleteInvest
exports["RiP-Invest"]:deleteInvest(investSymbol, xPlayer)
This function deletes a stock/crypto
Arguments
Name | Type | Optional | Explenation |
---|---|---|---|
investSymbol | String | No | Stock/Crypto symbol (3 letters) |
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]:deleteInvest("RIP", xPlayer)
if not state then
print("error occur")
end