Skip to content

Commit

Permalink
ci: generate native definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Mar 24, 2024
1 parent a659703 commit 645083d
Show file tree
Hide file tree
Showing 4 changed files with 70 additions and 86 deletions.
109 changes: 37 additions & 72 deletions library/natives/GTAV/AUDIO.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1945,25 +1945,24 @@ function SetMobileRadioEnabledDuringGameplay(toggle) end
---@param toggle boolean
function SetPedAudioFootstepLoud(ped, toggle) end

---**`AUDIO` `client`**
---[Native Documentation](https://docs.fivem.net/natives/?_0xA5342D390CDA41D6)
---This native does not have an official description.
---@param ped integer
---@param p1 boolean
function SetPedAudioGender(ped, p1) end

---**`AUDIO` `client`**
---[Native Documentation](https://docs.fivem.net/natives/?_0x29DA3CA8D8B2692D)
---```
---Enables/disables ped's "quiet" footstep sound.
---```
---
---```
---NativeDB Introduced: v1493
---```
---@param ped integer
---@param toggle boolean
function SetPedAudioFootstepQuiet(ped, toggle) end
---@param enabled boolean
function SetPedClothEventsEnabled(ped, enabled) end

---**`AUDIO` `client`**
---[Native Documentation](https://docs.fivem.net/natives/?_0xA5342D390CDA41D6)
---This native does not have an official description.
---@param ped integer
---@param p1 boolean
function SetPedAudioGender(ped, p1) end
---@deprecated
SetPedAudioFootstepQuiet = SetPedClothEventsEnabled

---**`AUDIO` `client`**
---[Native Documentation](https://docs.fivem.net/natives/?_0x95D2D383D5396B8A)
Expand Down Expand Up @@ -2267,23 +2266,18 @@ function SetVehicleRadioEnabled(vehicle, toggle) end
---[Native Documentation](https://docs.fivem.net/natives/?_0xBB6F1CAEC68B0BCE)
---This native does not have an official description.
---@param vehicle integer
---@param toggle boolean
function SetVehicleRadioLoud(vehicle, toggle) end
---@param loud boolean
function SetVehicleRadioLoud(vehicle, loud) end

---**`AUDIO` `client`**
---[Native Documentation](https://docs.fivem.net/natives/?_0xF1F8157B8C3F171C)
---Overrides the vehicle's startup engine rev sound.
---
---2 calls found in the b617d scripts:
---
---```cpp
---AUDIO::SET_VEHICLE_STARTUP_REV_SOUND(l_A42, "Franklin_Bike_Rev", "BIG_SCORE_3A_SOUNDS");
---AUDIO::SET_VEHICLE_STARTUP_REV_SOUND(l_166, "Trevor_Revs_Off", "PALETO_SCORE_SETUP_SOUNDS");
---```
---You can reset this with [RESET_VEHICLE_STARTUP_REV_SOUND](#\_0xD2DCCD8E16E20997)
---@param vehicle integer
---@param p1 string
---@param p2 string
function SetVehicleStartupRevSound(vehicle, p1, p2) end
---@param soundName string
---@param setName string
function SetVehicleStartupRevSound(vehicle, soundName, setName) end

---**`AUDIO` `client`**
---[Native Documentation](https://docs.fivem.net/natives/?_0x1B9C0099CB942AC6)
Expand Down Expand Up @@ -2312,33 +2306,10 @@ function SoundVehicleHornThisFrame(vehicle) end

---**`AUDIO` `client`**
---[Native Documentation](https://docs.fivem.net/natives/?_0x0355EF116C4C97B2)
---```
---Example:
---This will start the alarm at Fort Zancudo.
---AUDIO::START_ALARM("PORT_OF_LS_HEIST_FORT_ZANCUDO_ALARMS", 1);
---First parameter (char) is the name of the alarm.
---Second parameter (bool) is unknown, it does not seem to make a difference if this one is 0 or 1.
-------------
---It DOES make a difference but it has to do with the duration or something I dunno yet
-------------
--- Found in the b617d scripts:
--- AUDIO::START_ALARM("AGENCY_HEIST_FIB_TOWER_ALARMS", 0);
--- AUDIO::START_ALARM("AGENCY_HEIST_FIB_TOWER_ALARMS_UPPER", 1);
--- AUDIO::START_ALARM("AGENCY_HEIST_FIB_TOWER_ALARMS_UPPER_B", 0);
--- AUDIO::START_ALARM("BIG_SCORE_HEIST_VAULT_ALARMS", a_0);
--- AUDIO::START_ALARM("FBI_01_MORGUE_ALARMS", 1);
--- AUDIO::START_ALARM("FIB_05_BIOTECH_LAB_ALARMS", 0);
--- AUDIO::START_ALARM("JEWEL_STORE_HEIST_ALARMS", 0);
--- AUDIO::START_ALARM("PALETO_BAY_SCORE_ALARM", 1);
--- AUDIO::START_ALARM("PALETO_BAY_SCORE_CHICKEN_FACTORY_ALARM", 0);
--- AUDIO::START_ALARM("PORT_OF_LS_HEIST_FORT_ZANCUDO_ALARMS", 1);
--- AUDIO::START_ALARM("PORT_OF_LS_HEIST_SHIP_ALARMS", 0);
--- AUDIO::START_ALARM("PRISON_ALARMS", 0);
--- AUDIO::START_ALARM("PROLOGUE_VAULT_ALARMS", 0);
---```
---You should call [PREPARE_ALARM](#\_0x9D74AE343DB65533) and wait for its value to be true before using this
---@param alarmName string
---@param p2 boolean
function StartAlarm(alarmName, p2) end
---@param skipStartup boolean
function StartAlarm(alarmName, skipStartup) end

---**`AUDIO` `client`**
---[Native Documentation](https://docs.fivem.net/natives/?_0x013A80FC08F6E4F2)
Expand All @@ -2352,49 +2323,43 @@ function StartAudioScene(scene) end

---**`AUDIO` `client`**
---[Native Documentation](https://docs.fivem.net/natives/?_0x23641AFE870AF385)
---This native does not have an official description.
---For use with [PRELOAD_SCRIPT_CONVERSATION](#\_0x3B3CAD6166916D87) and [GET_IS_PRELOADED_CONVERSATION_READY](#\_0xE73364DB90778FFA)
function StartPreloadedConversation() end

---**`AUDIO` `client`**
---[Native Documentation](https://docs.fivem.net/natives/?_0x6B17C62C9635D2DC)
---This native does not have an official description.
---@param p0 boolean
---@param p1 boolean
---@param p2 boolean
---@param p3 boolean
function StartScriptConversation(p0, p1, p2, p3) end
---@param displaySubtitles boolean
---@param addToBriefScreen boolean
---@param cloneConversation boolean
---@param interruptible boolean
function StartScriptConversation(displaySubtitles, addToBriefScreen, cloneConversation, interruptible) end

---**`AUDIO` `client`**
---[Native Documentation](https://docs.fivem.net/natives/?_0x252E5F915EABB675)
---This native does not have an official description.
---@param p0 boolean
---@param p1 boolean
function StartScriptPhoneConversation(p0, p1) end
---@param displaySubtitles boolean
---@param addToBriefScreen boolean
function StartScriptPhoneConversation(displaySubtitles, addToBriefScreen) end

---**`AUDIO` `client`**
---[Native Documentation](https://docs.fivem.net/natives/?_0xA1CADDCD98415A41)
---```
---Example:
---This will stop the alarm at Fort Zancudo.
---AUDIO::STOP_ALARM("PORT_OF_LS_HEIST_FORT_ZANCUDO_ALARMS", 1);
---First parameter (char) is the name of the alarm.
---Second parameter (bool) has to be true (1) to have any effect.
---```
---This native does not have an official description.
---@param alarmName string
---@param toggle boolean
function StopAlarm(alarmName, toggle) end
---@param instantStop boolean
function StopAlarm(alarmName, instantStop) end

---**`AUDIO` `client`**
---[Native Documentation](https://docs.fivem.net/natives/?_0x2F794A877ADD4C92)
---This native does not have an official description.
---@param stop boolean
function StopAllAlarms(stop) end
---@param instantStop boolean
function StopAllAlarms(instantStop) end

---**`AUDIO` `client`**
---[Native Documentation](https://docs.fivem.net/natives/?_0xDFE8422B3B94E688)
---This native does not have an official description.
---@param scene string
function StopAudioScene(scene) end
---Stops the named mixing scene (which was previously started by this script)
---@param sceneName string
function StopAudioScene(sceneName) end

---**`AUDIO` `client`**
---[Native Documentation](https://docs.fivem.net/natives/?_0xBAC7FC81A75EC1A1)
Expand Down
32 changes: 18 additions & 14 deletions library/natives/GTAV/VEHICLE.lua
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,14 @@ function AreHeliStubWingsDeployed(vehicle) end
---@return boolean
function AreOutriggerLegsDeployed(vehicle) end

---**`VEHICLE` `client`**
---[Native Documentation](https://docs.fivem.net/natives/?_0xF78F94D60248C737)
---Queries whether the control panels of a plane are intact. This native is used to determine the operational status of a plane's cockpit controls, which can affect the plane's flyability.
---@param vehicle integer
---@param checkForZeroHealth boolean
---@return boolean
function ArePlaneControlPanelsIntact(vehicle, checkForZeroHealth) end

---**`VEHICLE` `client`**
---[Native Documentation](https://docs.fivem.net/natives/?_0x755D6D5267CBBD7E)
---This native does not have an official description.
Expand Down Expand Up @@ -3216,12 +3224,6 @@ function N_0x2310a8f9421ebf43(p0) end
---@param p1 boolean
function N_0x2311dd7159f00582(vehicle, p1) end

---**`VEHICLE` `client`**
---[Native Documentation](https://docs.fivem.net/natives/?_0x26D99D5A82FD18E8)
---This native does not have an official description.
---@param p0 any
function N_0x26d99d5a82fd18e8(p0) end

---**`VEHICLE` `client`**
---[Native Documentation](https://docs.fivem.net/natives/?_0x2C1D8B3B19E517CC)
---This native does not have an official description.
Expand Down Expand Up @@ -4026,14 +4028,6 @@ function N_0xf25e02cb9c5818f8() end
---@return any
function N_0xf3b0e0aed097a3f5(p0, p1) end

---**`VEHICLE` `client`**
---[Native Documentation](https://docs.fivem.net/natives/?_0xF78F94D60248C737)
---This native does not have an official description.
---@param vehicle integer
---@param p1 boolean
---@return boolean
function N_0xf78f94d60248c737(vehicle, p1) end

---**`VEHICLE` `client`**
---[Native Documentation](https://docs.fivem.net/natives/?_0xF8B49F5BA7F850E7)
---```
Expand Down Expand Up @@ -4587,6 +4581,16 @@ function SetConvertibleRoofLatchState(vehicle, state) end
---@param p2 boolean
function SetDeployHeliStubWings(vehicle, deploy, p2) end

---**`VEHICLE` `client`**
---[Native Documentation](https://docs.fivem.net/natives/?_0x26D99D5A82FD18E8)
---Disables the additional physics forces applied to BMX bikes that enable them to perform tricks.
---
---```
---NativeDB Introduced: v463
---```
---@param disableExtraTrickForces boolean
function SetDisableBmxExtraTrickForces(disableExtraTrickForces) end

---**`VEHICLE` `client`**
---[Native Documentation](https://docs.fivem.net/natives/?_0x26E13D440E7F6064)
---Prevents a vehicle from exploding upon sustaining body damage from physical collisions. This can be used to increase the durability of vehicles in high-impact scenarios, such as races or combat situations, by preventing them from being destroyed due to collision-induced body damage.
Expand Down
7 changes: 7 additions & 0 deletions library/natives/RDR3/NETWORK.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1266,6 +1266,13 @@ function N_0xd7d0df27cb1765b5(p0) end
---@return boolean
function N_0xda1bfed8582f61f0() end

---**`NETWORK` `client`**
---[Native Documentation](https://alloc8or.re/rdr3/nativedb/?n=0xDBDF80673BBA3D65)
---Note: this native was added in build 1491.50
---@param p0 integer
---@return boolean
function N_0xdbdf80673bba3d65(p0) end

---**`NETWORK` `client`**
---[Native Documentation](https://alloc8or.re/rdr3/nativedb/?n=0xDC6AD5C046F33AB4)
---This native does not have an official description.
Expand Down
8 changes: 8 additions & 0 deletions library/natives/RDR3/TELEMETRY.lua
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,14 @@ function AnalyticsPlaytimeFreemodeStart() end
---This native does not have an official description.
function ClearTelemetryShopUi() end

---**`TELEMETRY` `client`**
---[Native Documentation](https://alloc8or.re/rdr3/nativedb/?n=0x6F5BC5C4EAB42B15)
---Note: this native was added in build 1491.50
---@param linkID integer
---@param type integer
---@param contentId string
function N_0x6f5bc5c4eab42b15(linkID, type, contentId) end

---**`TELEMETRY` `client`**
---[Native Documentation](https://alloc8or.re/rdr3/nativedb/?n=0xEC0BD8736DCAF841)
---This native does not have an official description.
Expand Down

0 comments on commit 645083d

Please sign in to comment.