RedM Natives

_GET_TRAIN_CARRIAGE_PROP_SET

Example before/after deleting a train carriage's propset:

Hash0xCFC0BD09BB1B73FF
Runtime nameGetTrainCarriagePropSet
NamespacePROPSET
SideClient
NameCommunity guess
Docs
Since build1207

Signature

PropSet _GET_TRAIN_CARRIAGE_PROP_SET(Entity trainCarriage);

Parameters

NameTypeDescription
trainCarriageEntity—

Returns PropSet

Description

Example before/after deleting a train carriage's propset: https://imgur.com/a/qRNrIrK

Usage

Lua
local retval = GetTrainCarriagePropSet(trainCarriage)

-- always works, by hash
local retval = Citizen.InvokeNative(0xCFC0BD09BB1B73FF, trainCarriage, Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const retval = GetTrainCarriagePropSet(trainCarriage);

// by hash
const retval = Citizen.invokeNative('0xCFC0BD09BB1B73FF', trainCarriage, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
C#
int retval = Function.Call<int>((Hash)0xCFC0BD09BB1B73FF, trainCarriage);
  • The name is a community guess and may change. If the named call is missing in your client build, use InvokeNative with the hash — it always works.

Sources

alloc8or RDR3 NativeDB

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