RedM Natives

SET_VEHICLE_HAS_BEEN_OWNED_BY_PLAYER

Hash0xBB5A3FA8ED3979C5
Runtime nameSetVehicleHasBeenOwnedByPlayer
NamespaceVEHICLE
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x2B5F9D2AF1F1722D

Signature

void SET_VEHICLE_HAS_BEEN_OWNED_BY_PLAYER(Vehicle vehicle, BOOL owned);

Parameters

NameTypeDescription
vehicleVehicle—
ownedBOOL—

Returns void

Usage

Lua
SetVehicleHasBeenOwnedByPlayer(vehicle, owned)

-- always works, by hash
Citizen.InvokeNative(0xBB5A3FA8ED3979C5, vehicle, owned)
JavaScript and C#
JavaScript
SetVehicleHasBeenOwnedByPlayer(vehicle, owned);

// by hash
Citizen.invokeNative('0xBB5A3FA8ED3979C5', vehicle, owned);
C#
Function.Call((Hash)0xBB5A3FA8ED3979C5, vehicle, owned);

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.