PedClient

setPedAllowHurtCombatForAllMissionPeds

SET_PED_ALLOW_HURT_COMBAT_FOR_ALL_MISSION_PEDS0xF2BEBCDFAFDAA19E

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

SignatureJavaScript
setPedAllowHurtCombatForAllMissionPeds(toggle: boolean): void
SignatureLua
setPedAllowHurtCombatForAllMissionPeds(toggle: boolean)

Usage

JavaScript
setPedAllowHurtCombatForAllMissionPeds(toggle);
Lua
setPedAllowHurtCombatForAllMissionPeds(toggle)

Parameters

ParameterTypeJavaScriptLua
toggleBOOLbooleanboolean

Returns

Nothing. In JavaScript the call evaluates to undefined.

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

ntoggle was always false except in one instance (b678).

The one time this is set to true seems to do with when you fail the mission.

Reference

Namespace
Ped PED
In the game
void SET_PED_ALLOW_HURT_COMBAT_FOR_ALL_MISSION_PEDS(BOOL toggle)
Hash
0xF2BEBCDFAFDAA19E

Open in the interactive natives reference