RedM Natives

_GET_PED_SPEECH_RELATIONSHIP

Checks weather a speech relationship hash was applied on given ped or not.

Hash0x7C8AA850617651D9
Runtime nameGetPedSpeechRelationship
NamespacePED
SideClient
NameCommunity guess
Docs
Since build1207

Signature

BOOL _GET_PED_SPEECH_RELATIONSHIP(Ped ped, Hash p1);

Parameters

NameTypeDescription
pedPed—
p1Hash—

Returns BOOL

Description

alloc8or RDR3 NativeDB

Checks weather a speech relationship hash was applied on given ped or not.
_GET_PED_G* - _GET_PED_I* (INTERACTION?)

VORPCORE RDR3natives

Returns wether `0x1E017404784AA6A3` was applied on the ped.
some hashs MAR2_RIDE1, MAR2_RIDE1, RBCH1_RIDE1, SAD5_RIDE1

Usage

Lua
local retval = GetPedSpeechRelationship(ped, p1)

-- always works, by hash
local retval = Citizen.InvokeNative(0x7C8AA850617651D9, ped, p1, Citizen.ReturnResultAnyway())
JavaScript and C#
JavaScript
const retval = GetPedSpeechRelationship(ped, p1);

// by hash
const retval = Citizen.invokeNative('0x7C8AA850617651D9', ped, p1, Citizen.returnResultAnyway());
C#
bool retval = Function.Call<bool>((Hash)0x7C8AA850617651D9, ped, p1);
  • Hash parameters: the named function also accepts a string and hashes it for you; Citizen.InvokeNative needs the number — pass joaat("name") or a backtick literal like `name`.
  • 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 · VORPCORE RDR3natives

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