Skip to content

Commit

Permalink
Merge pull request #921 from Mathu-lmn/link-patches
Browse files Browse the repository at this point in the history
Update natives and fix broken internal links
  • Loading branch information
thorium-cfx authored Oct 30, 2023
2 parents 8ff8c75 + bfdc275 commit 5c82269
Show file tree
Hide file tree
Showing 14 changed files with 18 additions and 22 deletions.
4 changes: 2 additions & 2 deletions GRAPHICS/EnableAlienBloodVfx.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ aliases: ["0x9DCE1F0F78260875"]
void ENABLE_ALIEN_BLOOD_VFX(BOOL toggle);
```
Creates a motion-blur sort of effect, this native does not seem to work, however by using the [`START_SCREEN_EFFECT`](#_0x2206BF9A37B7F724) native with `"DrugsMichaelAliensFight"` as the effect parameter, you should be able to get the effect.
Creates a motion-blur sort of effect, this native does not seem to work, however by using the [`ANIMPOSTFX_PLAY`](#_0x2206BF9A37B7F724) native with `"DrugsMichaelAliensFight"` as the effect parameter, you should be able to get the effect.
This native does not seem to work, however by using the [START_SCREEN_EFFECT](https://runtime.fivem.net/doc/natives/#_0x2206BF9A37B7F724) native with "DrugsMichaelAliensFight" as the effect parameter, you should be able to get the effect.
This native does not seem to work, however by using the [ANIMPOSTFX_PLAY](#_0x2206BF9A37B7F724) native with "DrugsMichaelAliensFight" as the effect parameter, you should be able to get the effect.
Expand Down
2 changes: 1 addition & 1 deletion GRAPHICS/TerraingridActivate.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ void TERRAINGRID_ACTIVATE(BOOL toggle);
```
This native enables/disables the gold putting grid display (https://i.imgur.com/TC6cku6.png).
This requires these two natives to be called as well to configure the grid: [`0x1c4fc5752bcd8e48`](https://runtime.fivem.net/doc/reference.html#_0x1C4FC5752BCD8E48) and [`0x5ce62918f8d703c7`](https://runtime.fivem.net/doc/reference.html#_0x5CE62918F8D703C7).
This requires these two natives to be called as well to configure the grid: [`TERRAINGRID_SET_PARAMS`](#_0x1C4FC5752BCD8E48) and [`TERRAINGRID_SET_COLOURS`](#_0x5CE62918F8D703C7).
Expand Down
2 changes: 1 addition & 1 deletion GRAPHICS/TerraingridSetColours.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ void TERRAINGRID_SET_COLOURS(int lowR, int lowG, int lowB, int lowAlpha, int R,
```
This native is used along with these two natives: [`0xa356990e161c9e65`](https://runtime.fivem.net/doc/reference.html#_0xA356990E161C9E65) and [`0x1c4fc5752bcd8e48`](https://runtime.fivem.net/doc/reference.html#_0x1C4FC5752BCD8E48).
This native is used along with these two natives: [`TERRAINGRID_ACTIVATE`](#_0xA356990E161C9E65) and [`TERRAINGRID_SET_PARAMS`](#_0x1C4FC5752BCD8E48).
This native sets the colors for the golf putting grid. the 'min...' values are for the lower areas that the grid covers, the 'max...' values are for the higher areas that the grid covers, all remaining values are for the 'normal' ground height.
All those natives combined they will output something like this: https://i.imgur.com/TC6cku6.png
Expand Down
2 changes: 1 addition & 1 deletion GRAPHICS/TerraingridSetParams.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ aliases: ["0x1C4FC5752BCD8E48"]
void TERRAINGRID_SET_PARAMS(float x, float y, float z, float p3, float rotation, float p5, float width, float height, float p8, float scale, float glowIntensity, float normalHeight, float heightDiff);
```
This native is used along with these two natives: [`0xa356990e161c9e65`](https://runtime.fivem.net/doc/reference.html#_0xA356990E161C9E65) and [`0x5ce62918f8d703c7`](https://runtime.fivem.net/doc/reference.html#_0x5CE62918F8D703C7).
This native is used along with these two natives: [`TERRAINGRID_ACTIVATE`](#_0xA356990E161C9E65) and [`TERRAINGRID_SET_COLOURS`](#_0x5CE62918F8D703C7).
This native configures the location, size, rotation, normal height, and the difference ratio between min, normal and max.
Expand Down
2 changes: 1 addition & 1 deletion HUD/ClearGpsMultiRoute.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ aliases: ["0x67EEDEA1B9BAFD94"]
void CLEAR_GPS_MULTI_ROUTE();
```

Does the same as [`SET_GPS_MULTI_ROUTE_RENDER(false)`](https://runtime.fivem.net/doc/reference.html#_0x3DDA37128DD1ACA8)
Does the same as [`SET_GPS_MULTI_ROUTE_RENDER(false)`](#_0x3DDA37128DD1ACA8)
2 changes: 1 addition & 1 deletion HUD/GivePedToPauseMenu.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ p1 is either 1 or 2 in the PC scripts.
```
This native is used to "give"/duplicate a player ped to a frontend menu as configured via the `ACTIVATE_FRONTEND_MENU` native, you first must utilize the `CLONE_PED` ( https://runtime.fivem.net/doc/natives/#_0xEF29A16337FACADB ) to clone said ped.
This native is used to "give"/duplicate a player ped to a frontend menu as configured via the `ACTIVATE_FRONTEND_MENU` native, you first must utilize the [CLONE_PED](#_0xEF29A16337FACADB) to clone said ped.
## Parameters
Expand Down
6 changes: 1 addition & 5 deletions HUD/SetBlipSprite.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@ ns: HUD
void SET_BLIP_SPRITE(Blip blip, int spriteId);
```
<!--
_loc1_.map((name, idx) => `| ${idx} | ${name} | ![${name}](https://runtime.fivem.net/blips/${name}.svg) |`).join('\n')
-->
Sets the displayed sprite for a specific blip.
There's a [list of sprites](https://docs.fivem.net/game-references/blips/) on the FiveM documentation site.
Expand All @@ -23,4 +19,4 @@ There's a [list of sprites](https://docs.fivem.net/game-references/blips/) on th
## Examples
```lua
SetBlipSprite(blip, 588) -- changes `blip` to radar_nhp_orbit
```
```
2 changes: 1 addition & 1 deletion HUD/SetMinimapGolfCourse.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ All I know for sure is that it draws the specified hole ID on the pause menu map
You need to center the minimap manually as well as change/lock it's zoom and angle in order for it to appear correctly on the minimap.
You'll also need to use the `GOLF` scaleform in order to get the correct minmap border to show up.
Use [`N_0x35edd5b2e3ff01c0()`](https://runtime.fivem.net/doc/reference.html#_0x35EDD5B2E3FF01C0) to reset the map when you no longer want to display any golf holes (you still need to unlock zoom, position and angle of the radar manually after calling this).
Use [`SET_MINIMAP_GOLF_COURSE_OFF()`](#_0x35EDD5B2E3FF01C0) to reset the map when you no longer want to display any golf holes (you still need to unlock zoom, position and angle of the radar manually after calling this).
## Parameters
* **hole**: The ID of the hole to draw on the map. ID starts with 1 for hole 1, 2 for hole 2, etc. 0 disables the golf map behaviour.
Expand Down
2 changes: 1 addition & 1 deletion MISC/SetWeatherTypeNowPersist.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ ns: MISC
void SET_WEATHER_TYPE_NOW_PERSIST(char* weatherType);
```
Refer to [`SET_WEATHER_TYPE_NOW`](#0x29B487C359E19889) for weather types.
Refer to [`SET_WEATHER_TYPE_NOW`](#_0x29B487C359E19889) for weather types.
## Parameters
* **weatherType**:
Expand Down
2 changes: 1 addition & 1 deletion PED/SetPedFaceFeature.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Parentheses indicate morph scale/direction as in (-1.0 to 1.0)
**Note:**
You may need to call [`SetPedHeadBlendData`](#0x9414E18B9434C2FE) prior to calling this native in order for it to work.
You may need to call [`SetPedHeadBlendData`](#_0x9414E18B9434C2FE) prior to calling this native in order for it to work.
## Parameters
* **ped**: The ped entity
Expand Down
8 changes: 4 additions & 4 deletions PED/SetPedHeadBlendData.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ For more info please refer to [this](https://gtaforums.com/topic/858970-all-gtao
IDs start at zero and go Male Non-DLC, Female Non-DLC, Male DLC, and Female DLC.</br>
This native function is often called prior to calling natives such as:
- [`SetPedHairColor`](#0xBB43F090)
- [`SetPedHeadOverlayColor`](#0x78935A27)
- [`SetPedHeadOverlay`](#0xD28DBA90)
- [`SetPedFaceFeature`](#0x6C8D4458)
- [`SetPedHairColor`](#_0xBB43F090)
- [`SetPedHeadOverlayColor`](#_0x78935A27)
- [`SetPedHeadOverlay`](#_0xD28DBA90)
- [`SetPedFaceFeature`](#_0x6C8D4458)
## Parameters
* **ped**: The ped entity
Expand Down
2 changes: 1 addition & 1 deletion PED/SetPedHeadOverlay.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ overlayID Part Index, to disable
**Note:**
You may need to call [`SetPedHeadBlendData`](#0x9414E18B9434C2FE) prior to calling this native in order for it to work.
You may need to call [`SetPedHeadBlendData`](#_0x9414E18B9434C2FE) prior to calling this native in order for it to work.
## Parameters
* **ped**: The ped entity
Expand Down
2 changes: 1 addition & 1 deletion PED/SetPedHeadOverlayColor.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Called after SET_PED_HEAD_OVERLAY().
**Note:**
You may need to call [`SetPedHeadBlendData`](#0x9414E18B9434C2FE) prior to calling this native in order for it to work.
You may need to call [`SetPedHeadBlendData`](#_0x9414E18B9434C2FE) prior to calling this native in order for it to work.
## Parameters
* **ped**: The ped entity
Expand Down
2 changes: 1 addition & 1 deletion WEAPON/SetCanPedEquipAllWeapons.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ aliases: ["0xEFF296097FF1E509"]
void _SET_CAN_PED_EQUIP_ALL_WEAPONS(Ped ped, BOOL toggle);
```
Does the same as [`_SET_CAN_PED_SELECT_WEAPON`](https://runtime.fivem.net/doc/natives/#_0xB4771B9AAF4E68E4) except for all weapons.
Does the same as [`_SET_CAN_PED_SELECT_WEAPON`](#_0xB4771B9AAF4E68E4) except for all weapons.
## Parameters
Expand Down

0 comments on commit 5c82269

Please sign in to comment.