RedM Natives

_0x1180A2974D251B7B

Returns p1 for 0xBA958F68031DDBFC (stationIndex) _GET_N* (NEAREST_STATION_FOR_TRAIN?)

Hash0x1180A2974D251B7B
Runtime nameN_0x1180a2974d251b7b
NamespaceVEHICLE
SideClient
NameHash only
Docs
Since build1207

Signature

int _0x1180A2974D251B7B(Vehicle train);

Parameters

NameTypeDescription
trainVehicle—

Returns int

Description

Returns p1 for 0xBA958F68031DDBFC (stationIndex)
_GET_N* (NEAREST_STATION_FOR_TRAIN?)

Usage

Lua
local retval = N_0x1180a2974d251b7b(train)

-- always works, by hash
local retval = Citizen.InvokeNative(0x1180A2974D251B7B, train, Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const retval = N_0x1180a2974d251b7b(train);

// by hash
const retval = Citizen.invokeNative('0x1180A2974D251B7B', train, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
C#
int retval = Function.Call<int>((Hash)0x1180A2974D251B7B, train);
  • This native has no known name, so the runtime exposes it only as N_0x1180a2974d251b7b (if present in the client snapshot). InvokeNative with the hash always works.

Sources

alloc8or RDR3 NativeDB

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