Skip to content

Commit

Permalink
Document game exit natives (#1055)
Browse files Browse the repository at this point in the history
* Document game exit natives

* Update RestartGame

* Document QuitGame

* Update RestartGame.md

Re-add old description with some further detail.

---------

Co-authored-by: ammonia-cfx <[email protected]>
  • Loading branch information
freedy69 and 4mmonium authored Mar 11, 2024
1 parent 587aa29 commit 1d2e056
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 30 deletions.
14 changes: 0 additions & 14 deletions MISC/ForceSocialClubUpdate.md

This file was deleted.

13 changes: 13 additions & 0 deletions MISC/QuitGame.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
ns: MISC
aliases: ["0xEB6891F03362FB12", "_FORCE_SOCIAL_CLUB_UPDATE"]
---
## QUIT_GAME

```c
// 0xEB6891F03362FB12
void QUIT_GAME();
```

Quits the game.

10 changes: 5 additions & 5 deletions MISC/RestartGame.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
---
ns: MISC
aliases: ["0xE574A662ACAEFBB1"]
aliases: ["0xE574A662ACAEFBB1", "_RESTART_GAME"]
---
## _RESTART_GAME
## RESTART_GAME

```c
// 0xE574A662ACAEFBB1
void _RESTART_GAME();
void RESTART_GAME();
```

In singleplayer it does exactly what the name implies. In FiveM / GTA:Online it shows `Disconnecting from GTA Online` HUD and then quits the game.

In singleplayer it does exactly what the name implies. In FiveM / GTA:Online it shows the `Disconnecting from GTA Online` warning screen message and quits the game.
After quitting, the game process is started again (as the name implies).
11 changes: 0 additions & 11 deletions NETWORK/N_0x45a83257ed02d9bc.md

This file was deleted.

13 changes: 13 additions & 0 deletions NETWORK/NetworkQuitMpToDesktop.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
ns: NETWORK
aliases: ["0x45A83257ED02D9BC"]
---
## NETWORK_QUIT_MP_TO_DESKTOP

```c
// 0x45A83257ED02D9BC
void NETWORK_QUIT_MP_TO_DESKTOP();
```

Forces the "Are you sure you want to quit Grand Theft Auto V?" warning message (Same as when you Alt+F4) to show.
Doesn't work in singleplayer.

0 comments on commit 1d2e056

Please sign in to comment.