The Lab
PLAYER native

SET_PLAYER_CAN_USE_COVER

returns void2 paramsbuild 1207

Allows or prevents player from using cover.

Signature

C
void SET_PLAYER_CAN_USE_COVER(Player player, BOOL toggle); // 0x5EDA520F7A3BAF4E b1207

Parameters

#NameType
1playerPlayer
2toggleBOOL

Facts

Facts about SET_PLAYER_CAN_USE_COVER
Name
SET_PLAYER_CAN_USE_COVER
Hash
0x5EDA520F7A3BAF4E
Namespace
Returns
void
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
Citizen.InvokeNative(0x5EDA520F7A3BAF4E, -- SET_PLAYER_CAN_USE_COVER
  PlayerId(), -- Player player
  false -- BOOL toggle
)
JavaScript
Citizen.invokeNative("0x5EDA520F7A3BAF4E", // SET_PLAYER_CAN_USE_COVER
  PlayerId(), // Player player
  false // BOOL toggle
);
C#
Function.Call((Hash)0x5EDA520F7A3BAF4E, // SET_PLAYER_CAN_USE_COVER
  API.PlayerId(), // Player player
  false // BOOL toggle
);
All PLAYER natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.