Skip to content

Commit

Permalink
Update NetworkConcealPlayer.md
Browse files Browse the repository at this point in the history
Re-organize code and name third native parameter.
  • Loading branch information
4mmonium authored Jun 24, 2024
1 parent e1df170 commit 2a44550
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions NETWORK/NetworkConcealPlayer.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,11 @@ ns: NETWORK

```c
// 0xBBDF066252829606 0x72052DB3
void NETWORK_CONCEAL_PLAYER(Player player, BOOL toggle, BOOL p2);
void NETWORK_CONCEAL_PLAYER(Player player, BOOL toggle, BOOL bAllowDamagingWhileConcealed);
```
This is what R* uses to hide players in MP interiors.
## Parameters
* **player**:
* **toggle**:
* **p2**:
To manage player visibility with NetworkConcealPlayer, here’s a solid approach:
**General Population (players not in any instance):**
Expand All @@ -27,6 +22,10 @@ To manage player visibility with NetworkConcealPlayer, here’s a solid approach
This setup keeps instance players separate from each other while allowing interaction with the general population.
## Parameters
* **player**:
* **toggle**:
* **bAllowDamagingWhileConcealed**:
```lua
-- Function to manage player visibility
Expand Down

0 comments on commit 2a44550

Please sign in to comment.