PedClient

setRelationshipGroupAffectsWantedLevel

SET_RELATIONSHIP_GROUP_AFFECTS_WANTED_LEVEL0x5615E0C5EB2BC6E2

The GTA V native SET_RELATIONSHIP_GROUP_AFFECTS_WANTED_LEVEL of the PED namespace, as LS:MP client scripts call it: the global function setRelationshipGroupAffectsWantedLevel, in JavaScript and in Lua.

SignatureJavaScript
setRelationshipGroupAffectsWantedLevel(group: Hash, p1: boolean): void
SignatureLua
setRelationshipGroupAffectsWantedLevel(group: Hash, p1: boolean)

Usage

JavaScript
setRelationshipGroupAffectsWantedLevel(group, p1);
Lua
setRelationshipGroupAffectsWantedLevel(group, p1)

Parameters

ParameterTypeJavaScriptLua
groupHashnumberinteger
p1BOOLbooleanboolean

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
Ped PED
In the game
void SET_RELATIONSHIP_GROUP_AFFECTS_WANTED_LEVEL(Hash group, BOOL p1)
Hash
0x5615E0C5EB2BC6E2
Introduced
Game build 877 legacy numbering
Formerly
_SET_RELATIONSHIP_GROUP_DONT_AFFECT_WANTED_LEVEL

Open in the interactive natives reference