SET_PED_CAN_BE_TARGETTED_BY_PLAYER
Controls whether player can target ped.
Signature
void SET_PED_CAN_BE_TARGETTED_BY_PLAYER(Ped ped, Player player, BOOL toggle); // 0x66B57B72E0836A76 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | ped | Ped |
| 2 | player | Player |
| 3 | toggle | BOOL |
Facts
| Name | SET_PED_CAN_BE_TARGETTED_BY_PLAYER |
|---|---|
| Hash | 0x66B57B72E0836A76 |
| Namespace | |
| Returns | void |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
Citizen.InvokeNative(0x66B57B72E0836A76, -- SET_PED_CAN_BE_TARGETTED_BY_PLAYER
PlayerPedId(), -- Ped ped
PlayerId(), -- Player player
false -- BOOL toggle
)Citizen.invokeNative("0x66B57B72E0836A76", // SET_PED_CAN_BE_TARGETTED_BY_PLAYER
PlayerPedId(), // Ped ped
PlayerId(), // Player player
false // BOOL toggle
);Function.Call((Hash)0x66B57B72E0836A76, // SET_PED_CAN_BE_TARGETTED_BY_PLAYER
API.PlayerPedId(), // Ped ped
API.PlayerId(), // Player player
false // BOOL toggle
);Related PED natives
- SET_PED_CAN_BE_TARGETTED_BY_TEAM
- SET_PED_CAN_BE_TARGETTED
- SET_PED_CAN_BE_INCAPACITATED
- SET_PED_CAN_BE_KNOCKED_OFF_VEHICLE
- SET_PED_CAN_RAGDOLL_FROM_PLAYER_IMPACT
- SET_PED_CAN_ARM_IK
- SET_PED_CAN_HEAD_IK
- SET_PED_CAN_LEG_IK
- SET_PED_CAN_PLAY_AMBIENT_ANIMS
- SET_PED_CAN_PLAY_AMBIENT_BASE_ANIMS
- SET_PED_CAN_PLAY_GESTURE_ANIMS
- SET_PED_CAN_RAGDOLL
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.