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 Nov 17, 2024
1 parent a41947f commit 06f1064
Show file tree
Hide file tree
Showing 27 changed files with 1,020 additions and 847 deletions.
14 changes: 8 additions & 6 deletions library/natives/RDR3/AICOVERPOINT.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
---@meta

---**`AICOVERPOINT` `client`**
---[Native Documentation](https://alloc8or.re/rdr3/nativedb/?n=0x733077295AB51304)
---args: f_0 = Volume Handle
---f_1 = integer (?) (only the number 1 is ever used here, or is not used at all)
---f_2 = integer (-1 to 32 in R* Scripts)
---@return any
function AddCoverBlockingArea() end

---**`AICOVERPOINT` `client`**
---[Native Documentation](https://alloc8or.re/rdr3/nativedb/?n=0x975BD6351648935F)
---This native does not have an official description.
Expand Down Expand Up @@ -55,12 +63,6 @@ function N_0x53e4d0c079ca6855(handle) end
---@param coverLayer string
function N_0x64340dc208d671d5(coverLayer) end

---**`AICOVERPOINT` `client`**
---[Native Documentation](https://alloc8or.re/rdr3/nativedb/?n=0x733077295AB51304)
---args: f_0 = Volume Handle, f_2 = integer (-1, 32 used in R* Scripts)
---@return any
function N_0x733077295ab51304() end

---**`AICOVERPOINT` `client`**
---[Native Documentation](https://alloc8or.re/rdr3/nativedb/?n=0x7A1FDCF35EAA140F)
---coverLayer: see levels_0/levels/rdr3/coverlayers
Expand Down
3 changes: 3 additions & 0 deletions library/natives/RDR3/ANIMSCENE.lua
Original file line number Diff line number Diff line change
Expand Up @@ -531,6 +531,7 @@ function N_0x73616e64696c132e(animScene, p1) end

---**`ANIMSCENE` `client`**
---[Native Documentation](https://alloc8or.re/rdr3/nativedb/?n=0x9AAE3C1148A09BCA)
---Checks if AnimScene is aborted, and an unknown check. Usually used with 0x34A0671BE613D3D0
---Used in SP R* Scripts only
---_IS_ANIM_SCENE_*
---@param animScene integer
Expand All @@ -539,6 +540,7 @@ function N_0x9aae3c1148a09bca(animScene) end

---**`ANIMSCENE` `client`**
---[Native Documentation](https://alloc8or.re/rdr3/nativedb/?n=0xA96619FE85159ED2)
---Checks if AnimScene is aborted, and an unknown check.
---Used in SP R* Scripts only
---_WAS_ANIM_SCENE_*
---@param animScene integer
Expand Down Expand Up @@ -576,6 +578,7 @@ function N_0xcdcd7b2d49aee73a(p0) end

---**`ANIMSCENE` `client`**
---[Native Documentation](https://alloc8or.re/rdr3/nativedb/?n=0xD70C7A30412F8FA0)
---Checks if AnimScene is NOT aborted, and an unknown check. Usually used with ABORT_ANIM_SCENE
---Used in SP R* Scripts only
---_IS_ANIM_SCENE_*
---@param animScene integer
Expand Down
38 changes: 20 additions & 18 deletions library/natives/RDR3/AUDIO.lua
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,13 @@ function GetCurrentScriptedConversationLine(p0) end
---@return integer
function GetEntityAudioMixGroup(entity) end

---**`AUDIO` `client`**
---[Native Documentation](https://alloc8or.re/rdr3/nativedb/?n=0x6BFFB7C276866996)
---Gets the hash for the last played speech line.
---@param ped integer
---@return integer
function GetLastPlayedSpeechForPed(ped) end

---**`AUDIO` `client`**
---[Native Documentation](https://alloc8or.re/rdr3/nativedb/?n=0x0556C784FA056628)
---Creates stream and returns streamId handle to be used with PLAY_STREAM_* natives
Expand Down Expand Up @@ -510,10 +517,10 @@ function N_0x44a5eef54f62e823(p0) end

---**`AUDIO` `client`**
---[Native Documentation](https://alloc8or.re/rdr3/nativedb/?n=0x4A98E228A936DBCC)
---This native does not have an official description.
---@param p0 any
---@return any
function N_0x4a98e228a936dbcc(p0) end
---Gets the hash for the currently playing speech line.
---@param ped integer
---@return integer
function N_0x4a98e228a936dbcc(ped) end

---**`AUDIO` `client`**
---[Native Documentation](https://alloc8or.re/rdr3/nativedb/?n=0x4BE3EC91C01F0FE8)
Expand Down Expand Up @@ -607,13 +614,6 @@ function N_0x6ab944df68b512d3(p0) end
---@param p0 any
function N_0x6b7a88a61b41e589(p0) end

---**`AUDIO` `client`**
---[Native Documentation](https://alloc8or.re/rdr3/nativedb/?n=0x6BFFB7C276866996)
---This native does not have an official description.
---@param p0 any
---@return any
function N_0x6bffb7c276866996(p0) end

---**`AUDIO` `client`**
---[Native Documentation](https://alloc8or.re/rdr3/nativedb/?n=0x6DA15746D5CC1A92)
---This native does not have an official description.
Expand Down Expand Up @@ -723,13 +723,15 @@ function N_0x935dbd96d4a3da1f(p0, currentScriptedConvoLine) end

---**`AUDIO` `client`**
---[Native Documentation](https://alloc8or.re/rdr3/nativedb/?n=0x9D6DEC9791A4E501)
---This native does not have an official description.
---@param p0 any
---@param p1 any
---@param p2 any
---@param p3 any
---@return any
function N_0x9d6dec9791a4e501(p0, p1, p2, p3) end
---Returns true or false if the ped can say a specific speech line with PLAY_PED_AMBIENT_SPEECH_NATIVE, similar to DOES_CONTEXT_EXIST_FOR_THIS_PED.
---Not reliable on remote clients when used on a player ped.
---Params: p2 and p3 are usually false and true, respectively.
---@param ped integer
---@param speechName string
---@param p2 boolean
---@param p3 boolean
---@return boolean
function N_0x9d6dec9791a4e501(ped, speechName, p2, p3) end

---**`AUDIO` `client`**
---[Native Documentation](https://alloc8or.re/rdr3/nativedb/?n=0x9EB779765E68C52E)
Expand Down
54 changes: 30 additions & 24 deletions library/natives/RDR3/CAM.lua
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,11 @@ function ForceThirdPersonCamFarThisFrame() end
---Forces camera position to second furthest 3rd person
function ForceThirdPersonCamThisFrame() end

---**`CAM` `client`**
---[Native Documentation](https://alloc8or.re/rdr3/nativedb/?n=0x718C6ECF5E8CBDD4)
---Forces camera position to closest 3rd person
function ForceThirdPersonCloseThisFrame() end

---**`CAM` `client`**
---[Native Documentation](https://alloc8or.re/rdr3/nativedb/?n=0x027CAB2C3AF27010)
---This native does not have an official description.
Expand Down Expand Up @@ -624,16 +629,6 @@ function N_0x04084490cc302cfb() end
---This native does not have an official description.
function N_0x06557f6d96c86881() end

---**`CAM` `client`**
---[Native Documentation](https://alloc8or.re/rdr3/nativedb/?n=0x066167C63111D8CF)
---This native does not have an official description.
---@param p0 any
---@param p1 any
---@param p2 any
---@param p3 any
---@param p4 any
function N_0x066167c63111d8cf(p0, p1, p2, p3, p4) end

---**`CAM` `client`**
---[Native Documentation](https://alloc8or.re/rdr3/nativedb/?n=0x0961B089947BA6D0)
---This native does not have an official description.
Expand Down Expand Up @@ -850,16 +845,13 @@ function N_0x6dfd37e586d4f44f() end
---This native does not have an official description.
function N_0x70a6658d476c6187() end

---**`CAM` `client`**
---[Native Documentation](https://alloc8or.re/rdr3/nativedb/?n=0x718C6ECF5E8CBDD4)
---This native does not have an official description.
function N_0x718c6ecf5e8cbdd4() end

---**`CAM` `client`**
---[Native Documentation](https://alloc8or.re/rdr3/nativedb/?n=0x71D71E08A7ED5BD7)
---This native does not have an official description.
---@param p0 any
function N_0x71d71e08a7ed5bd7(p0) end
---Zooms in the third person camera closer to ground level.
---Must be called every frame to interpolate.
---Pass false to reset.
---@param toggle boolean
function N_0x71d71e08a7ed5bd7(toggle) end

---**`CAM` `client`**
---[Native Documentation](https://alloc8or.re/rdr3/nativedb/?n=0x728491FB3DFFEF99)
Expand Down Expand Up @@ -1174,8 +1166,8 @@ function ReactivatePedHeadshotExecuteSlowcam(ped, p1) end
---@param easeTime integer
---@param p3 boolean
---@param p4 boolean
---@param p5 integer
function RenderScriptCams(render, ease, easeTime, p3, p4, p5) end
---@param renderingFlags integer
function RenderScriptCams(render, ease, easeTime, p3, p4, renderingFlags) end

---**`CAM` `client`**
---[Native Documentation](https://alloc8or.re/rdr3/nativedb/?n=0x69D65E89FFD72313)
Expand Down Expand Up @@ -1286,12 +1278,12 @@ function SetCamNearClip(cam, nearClip) end
---@param rotZ number
---@param fieldOfView number
---@param p8 any
---@param p9 integer
---@param p10 integer
---@param p11 integer
---@param graphType1 integer
---@param graphType2 integer
---@param rotationOrder integer
---@param p12 any
---@param p13 any
function SetCamParams(cam, posX, posY, posZ, rotX, rotY, rotZ, fieldOfView, p8, p9, p10, p11, p12, p13) end
function SetCamParams(cam, posX, posY, posZ, rotX, rotY, rotZ, fieldOfView, p8, graphType1, graphType2, rotationOrder, p12, p13) end

---**`CAM` `client`**
---[Native Documentation](https://alloc8or.re/rdr3/nativedb/?n=0x63DFA6810AD78719)
Expand Down Expand Up @@ -1386,6 +1378,20 @@ function SetGameplayCamInitialZoom(camInitialZoom) end
---@param p0 number
function SetGameplayCamMaxMotionBlurStrengthThisUpdate(p0) end

---**`CAM` `client`**
---[Native Documentation](https://alloc8or.re/rdr3/nativedb/?n=0x066167C63111D8CF)
---Sets the third person gameplay camera zoom level and blends in.
---Must be called every frame to interpolate.
---Offset and distance permanently affects subtle zoom in weapon wheel and possibly in menus too.
---
---Params: p1 and p3 are usually true.
---@param speed number
---@param respectHorizontalOffset boolean
---@param horizontalOffset number
---@param respectDistance boolean
---@param distance number
function SetGameplayCamParamsThisUpdate(speed, respectHorizontalOffset, horizontalOffset, respectDistance, distance) end

---**`CAM` `client`**
---[Native Documentation](https://alloc8or.re/rdr3/nativedb/?n=0x5D1EB123EAC5D071)
---Sets the camera position relative to heading in float from -360 to +360.
Expand Down
15 changes: 8 additions & 7 deletions library/natives/RDR3/COLLECTION.lua
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,14 @@ function CollectableIncrementNumFound(collectableItem, amount) end
---@param amount integer
function CollectableIncrementNumTurnedIn(collectableItem, amount) end

---**`COLLECTION` `client`**
---[Native Documentation](https://alloc8or.re/rdr3/nativedb/?n=0xEC3959E9950BF56B)
---Returns discoveredItemHash
---_COLLECTABLE_C* - _COLLECTABLE_G*
---@param collectableItem integer | string
---@return integer
function CollectableSetItemHashDiscovered(collectableItem) end

---**`COLLECTION` `client`**
---[Native Documentation](https://alloc8or.re/rdr3/nativedb/?n=0x33825A7388A6B9F6)
---This native does not have an official description.
Expand Down Expand Up @@ -227,13 +235,6 @@ function N_0xd1806fb3eded6d11(collectableCategory, p1) end
---@return any
function N_0xd297f68928a58130(collectableCategory, p1) end

---**`COLLECTION` `client`**
---[Native Documentation](https://alloc8or.re/rdr3/nativedb/?n=0xEC3959E9950BF56B)
---This native does not have an official description.
---@param p0 integer
---@return any
function N_0xec3959e9950bf56b(p0) end

---**`COLLECTION` `client`**
---[Native Documentation](https://alloc8or.re/rdr3/nativedb/?n=0xFC832B06127D8E99)
---This native does not have an official description.
Expand Down
18 changes: 9 additions & 9 deletions library/natives/RDR3/DATABINDING.lua
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,17 @@ function DatabindingAddDataContainerByHash(p0, p1) end
---This native does not have an official description.
---@param p0 string
---@param p1 string
---@return any
---@return integer
function DatabindingAddDataContainerFromPath(p0, p1) end

---**`DATABINDING` `client`**
---[Native Documentation](https://alloc8or.re/rdr3/nativedb/?n=0xD7DB94AB78E8EBE4)
---This native does not have an official description.
---@param p0 string
---@param p1 integer | string
---@return any
function DatabindingAddDataContainerFromPathByHash(p0, p1) end

---**`DATABINDING` `client`**
---[Native Documentation](https://alloc8or.re/rdr3/nativedb/?n=0x5154228273ADB9A6)
---This native does not have an official description.
Expand Down Expand Up @@ -586,14 +594,6 @@ function N_0xc900cec8a172375b(p0, p1, p2) end
---@return any
function N_0xd48993a61938c64d(p0, p1) end

---**`DATABINDING` `client`**
---[Native Documentation](https://alloc8or.re/rdr3/nativedb/?n=0xD7DB94AB78E8EBE4)
---This native does not have an official description.
---@param p0 string
---@param p1 integer | string
---@return any
function N_0xd7db94ab78e8ebe4(p0, p1) end

---**`DATABINDING` `client`**
---[Native Documentation](https://alloc8or.re/rdr3/nativedb/?n=0xE6AAB897120492D6)
---This native does not have an official description.
Expand Down
2 changes: 1 addition & 1 deletion library/natives/RDR3/DATAFILE.lua
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ function ParseddataGetNumChildren(p0, p1) end
---[Native Documentation](https://alloc8or.re/rdr3/nativedb/?n=0x44B3A36933AC009C)
---This native does not have an official description.
---@param section integer | string
---@return boolean, any, any
---@return boolean, integer, any
function ParseddataGetSection(section) end

---**`DATAFILE` `client`**
Expand Down
1 change: 0 additions & 1 deletion library/natives/RDR3/DECORATOR.lua
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ function DecorRemoveAll(entity) end
---**`DECORATOR` `client`**
---[Native Documentation](https://alloc8or.re/rdr3/nativedb/?n=0xFE26E4609B1C3772)
---This function sets metadata of type bool to specified entity.
---
---@param entity integer
---@param propertyName string
---@param value boolean
Expand Down
8 changes: 4 additions & 4 deletions library/natives/RDR3/ENTITY.lua
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ function GetEntityAlpha(entity) end

---**`ENTITY` `client`**
---[Native Documentation](https://alloc8or.re/rdr3/nativedb/?n=0x627520389E288A73)
---This native does not have an official description.
---Returns a normalized value between 0.0f and 1.0f. You can get the actual anim time by multiplying this by GET_ANIM_DURATION
---@param entity integer
---@param animDict string
---@param animName string
Expand Down Expand Up @@ -1901,9 +1901,9 @@ function SetEntityAnimSpeed(entity, animDict, animName, speedMultiplier) end
---[Native Documentation](https://alloc8or.re/rdr3/nativedb/?n=0xDC19C288082E586E)
---Makes the specified entity (ped, vehicle or object) persistent. Persistent entities will not automatically be removed by the engine.
---@param entity integer
---@param p1 boolean
---@param p2 boolean
function SetEntityAsMissionEntity(entity, p1, p2) end
---@param scriptHostObject boolean
---@param grabFromOtherScript boolean
function SetEntityAsMissionEntity(entity, scriptHostObject, grabFromOtherScript) end

---**`ENTITY` `client`**
---[Native Documentation](https://alloc8or.re/rdr3/nativedb/?n=0x4971D2F8162B9674)
Expand Down
45 changes: 22 additions & 23 deletions library/natives/RDR3/FIRE.lua
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,21 @@ function AddOwnedExplosion(ped, x, y, z, explosionType, damageScale, isAudible,
---@return boolean, vector3
function GetClosestFirePos(x, y, z) end

---**`FIRE` `client`**
---[Native Documentation](https://alloc8or.re/rdr3/nativedb/?n=0x559FC1D310813031)
---This native does not have an official description.
---@param posX number
---@param posY number
---@param posZ number
---@param rotX number
---@param rotY number
---@param rotZ number
---@param scaleX number
---@param scaleY number
---@param scaleZ number
---@return boolean, vector3
function GetClosestFirePosInVolume(posX, posY, posZ, rotX, rotY, rotZ, scaleX, scaleY, scaleZ) end

---**`FIRE` `client`**
---[Native Documentation](https://alloc8or.re/rdr3/nativedb/?n=0xF9617BC6FAE61E08)
---This native does not have an official description.
Expand All @@ -117,6 +132,13 @@ function GetNumberOfFiresInRange(x, y, z, radius) end
---@return integer
function GetOwnerOfExplosionInAngledArea(explosionType, x1, y1, z1, x2, y2, z2, radius) end

---**`FIRE` `client`**
---[Native Documentation](https://alloc8or.re/rdr3/nativedb/?n=0xA4454592DCF7C992)
---Returns true if entity is being damaged by fire, once damage caused to entity by fire (like burned appearance) has cleared over time, the native returns false.
---@param entity integer
---@return boolean
function IsEntityBeingDamagedByFire(entity) end

---**`FIRE` `client`**
---[Native Documentation](https://alloc8or.re/rdr3/nativedb/?n=0xCDC25355C0D65963)
---This native does not have an official description.
Expand Down Expand Up @@ -236,22 +258,6 @@ function N_0x34ae85c7ca4857aa(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10) end
---@return any
function N_0x41b87a6495ee13dd(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9) end

---**`FIRE` `client`**
---[Native Documentation](https://alloc8or.re/rdr3/nativedb/?n=0x559FC1D310813031)
---This native does not have an official description.
---@param p0 any
---@param p1 any
---@param p2 any
---@param p3 any
---@param p4 any
---@param p5 any
---@param p6 any
---@param p7 any
---@param p8 any
---@param p9 any
---@return any
function N_0x559fc1d310813031(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9) end

---**`FIRE` `client`**
---[Native Documentation](https://alloc8or.re/rdr3/nativedb/?n=0x68F6A75FDF5A70D6)
---This native does not have an official description.
Expand All @@ -267,13 +273,6 @@ function N_0x68f6a75fdf5a70d6(x, y, z, p3) end
---@param p0 any
function N_0x754937c28271bc65(p0) end

---**`FIRE` `client`**
---[Native Documentation](https://alloc8or.re/rdr3/nativedb/?n=0xA4454592DCF7C992)
---This native does not have an official description.
---@param p0 any
---@return any
function N_0xa4454592dcf7c992(p0) end

---**`FIRE` `client`**
---[Native Documentation](https://alloc8or.re/rdr3/nativedb/?n=0xB7DF150605EEDC9B)
---_ADD_EXPLOSION_*(ON ENTITY?)
Expand Down
Loading

0 comments on commit 06f1064

Please sign in to comment.