Player::setConfigFlag

From RAGE Multiplayer Wiki
Jump to navigation Jump to search

Maximum value for flagId is 0x1AA (426) in b944.
ID 0xF0 (240) appears to be a special flag which is handled different compared to the others IDs.

-----------------------------------------------------------------------

enum PedConfigFlags
{
Player_FLAG_CAN_FLY_THRU_WINDSCREEN = 32,
Player_FLAG_DIES_BY_RAGDOLL = 33,
Player_FLAG_NO_COLLISION = 52,
Player_FLAG_NO_COLLIDE = 62,
Player_FLAG_DEAD = 71,
Player_FLAG_IS_SNIPER_SCOPE_ACTIVE = 72,
Player_FLAG_SUPER_DEAD = 73,
Player_FLAG_IS_AIMING = 78,
Player_FLAG_DRUNK = 100,
Player_FLAG_NO_PLAYER_MELEE = 122,
Player_FLAG_NM_MESSAGE_466 = 125,
Player_FLAG_INJURED_LIMP = 166,
Player_FLAG_INJURED_LIMP_2 = 170,
Player_FLAG_INJURED_DOWN = 187,
Player_FLAG_SHRINK = 223,
Player_FLAG_MELEE_COMBAT = 224,
Player_FLAG_NO_WRITHE = 281,
Player_FLAG_FREEZE = 292,
Player_FLAG_IS_STILL = 301,
Player_FLAG_NO_Player_MELEE = 314,
Player_FLAG_ALPHA = 410,
};

When flagId is set to 33 and the bool value to true, peds will die by starting ragdoll, so you should set this flag to false when you resurrect a player.
When flagId is set to 62 and the boolvalue to false this happens: Ped is taken out of vehicle and can't get back in when jacking their empty vehicle. If in a plane it falls from the sky and crashes. Sometimes peds vehicle continue to drive the route without its driver who's running after.

Note: Using Menyoo on GTA V PC. It read Player_FLAG_COLLIDE - 62 as false. I attempted to toggle it to true and it caused the game to crash.

JUMPING CHANGES 60,61,104 TO FALSE
BEING ON WATER CHANGES 60,61 TO FALSE AND 65,66,168 TO TRUE
FALLING CHANGES 60,61,104,276 TO FALSE AND TO 76 TRUE
DYING CHANGES 60,61,104,276* TO FALSE AND (NONE) TO TRUE
DYING MAKES 60,61,104 TO FALSE
BEING IN A CAR CHANGES 60,79,104 TO FALSE AND 62 TO TRUE


--------------
can any see what flag 365 does. set it to 0

Syntax

player.setConfigFlag(flagId, value);

Required Arguments

  • flagId: int
  • value: Boolean

Return value

  • Undefined

Example

// todo

See also