Skip to main content

Execute_SellStolenVehicle

Description

Sells a stolen vehicle. Gets the vehicle from ScriptContext Target (the vehicle being interacted with). Calculates sell price as vehicle's original price * F1, adds currency to Self, and destroys the vehicle entity. Designed to run AFTER ExitVehicle action (character has already exited).

Parameters

ParameterDescription
BaseObjectSelf (the character selling the vehicle).
F1Sell price ratio (e.g. 0.15 = 15% of original price).

Examples

DescriptionBaseObjectCommandF1
Sell stolen vehicle at 15% of original price.SelfSellStolenVehicle0.15
Sell stolen vehicle at 10% of original price (repeat).SelfSellStolenVehicle0.1