RedM Natives

INT_TO_PLAYERINDEX

Simply returns whatever is passed to it (Regardless of whether the handle is valid or not).

Hash0x748B3A65C2604C33
Runtime nameIntToPlayerindex
NamespacePLAYER
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x41BD2A6B006AF756

Signature

Player INT_TO_PLAYERINDEX(int value);

Parameters

NameTypeDescription
valueint—

Returns Player

Description

Simply returns whatever is passed to it (Regardless of whether the handle is valid or not).

Usage

Lua
local retval = IntToPlayerindex(value)

-- always works, by hash
local retval = Citizen.InvokeNative(0x748B3A65C2604C33, value, Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const retval = IntToPlayerindex(value);

// by hash
const retval = Citizen.invokeNative('0x748B3A65C2604C33', value, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
C#
int retval = Function.Call<int>((Hash)0x748B3A65C2604C33, value);

Sources

alloc8or RDR3 NativeDB

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