SET_PLAYER_CAN_USE_COVER
Sets whether this player can take cover.
Hash
0x5EDA520F7A3BAF4ERuntime name
SetPlayerCanUseCoverNamespacePLAYER
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0xD465A8599DFF6814Signature
void SET_PLAYER_CAN_USE_COVER(Player player, BOOL toggle);Parameters
| Name | Type | Description |
|---|---|---|
player | Player | — |
toggle | BOOL | — |
Returns void
Description
Sets whether this player can take cover.
Usage
SetPlayerCanUseCover(player, toggle)
-- always works, by hash
Citizen.InvokeNative(0x5EDA520F7A3BAF4E, player, toggle)JavaScript and C#
SetPlayerCanUseCover(player, toggle);
// by hash
Citizen.invokeNative('0x5EDA520F7A3BAF4E', player, toggle);Function.Call((Hash)0x5EDA520F7A3BAF4E, player, toggle);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.