RedM Natives

SET_PLAYER_CAN_USE_COVER

Sets whether this player can take cover.

Hash0x5EDA520F7A3BAF4E
Runtime nameSetPlayerCanUseCover
NamespacePLAYER
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0xD465A8599DFF6814

Signature

void SET_PLAYER_CAN_USE_COVER(Player player, BOOL toggle);

Parameters

NameTypeDescription
playerPlayer—
toggleBOOL—

Returns void

Description

Sets whether this player can take cover.

Usage

Lua
SetPlayerCanUseCover(player, toggle)

-- always works, by hash
Citizen.InvokeNative(0x5EDA520F7A3BAF4E, player, toggle)
JavaScript and C#
JavaScript
SetPlayerCanUseCover(player, toggle);

// by hash
Citizen.invokeNative('0x5EDA520F7A3BAF4E', player, toggle);
C#
Function.Call((Hash)0x5EDA520F7A3BAF4E, player, toggle);

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.