Skip to content

Commit ecc9859

Browse files
Release 2025-06-09
1 parent 7b21c9b commit ecc9859

File tree

3 files changed

+74
-44
lines changed

3 files changed

+74
-44
lines changed

docs-gen/client-cfx.def.lua

Lines changed: 31 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1603,13 +1603,13 @@ function SetVehicleGearRatio(vehicle, gear, ratio) end
16031603
--- RegisterRawKeymap("our_keymap", on_key_up, on_key_down, KEY_E, canBeDisabled
16041604
--- @hash [0x49C1F6DC](https://docs.fivem.net/natives/?_0x49C1F6DC)
16051605
--- @param keymapName string (char*)
1606-
--- @param onKeyUp fun
16071606
--- @param onKeyDown fun
1607+
--- @param onKeyUp fun
16081608
--- @param rawKeyIndex number (int)
16091609
--- @param canBeDisabled boolean
16101610
--- @return void
1611-
--- @overload fun(keymapName: string, onKeyUp: fun, onKeyDown: fun, rawKeyIndex: number, canBeDisabled: boolean): void
1612-
function RegisterRawKeymap(keymapName, onKeyUp, onKeyDown, rawKeyIndex, canBeDisabled) end
1611+
--- @overload fun(keymapName: string, onKeyDown: fun, onKeyUp: fun, rawKeyIndex: number, canBeDisabled: boolean): void
1612+
function RegisterRawKeymap(keymapName, onKeyDown, onKeyUp, rawKeyIndex, canBeDisabled) end
16131613

16141614

16151615
--- A getter for `CWeaponDamageModifier` in a weapon component.
@@ -1788,6 +1788,15 @@ function SetWaterQuadType(waterQuad, type) end
17881788
function SetEntityDrawOutlineShader(shader) end
17891789

17901790

1791+
--- A getter for the accuracy spread of a weapon.
1792+
---
1793+
--- @hash [0x5343721](https://docs.fivem.net/natives/?_0x5343721)
1794+
--- @param weaponHash Hash
1795+
--- @return number
1796+
--- @overload fun(weaponHash: Hash): number
1797+
function GetWeaponAccuracySpread(weaponHash) end
1798+
1799+
17911800
--- Sets the state of a track junction.
17921801
---
17931802
--- @hash [0x537B449D](https://docs.fivem.net/natives/?_0x537B449D)
@@ -1901,6 +1910,16 @@ function GetFuelConsumptionRateMultiplier() end
19011910
function SetInteriorPortalRoomTo(interiorId, portalIndex, roomTo) end
19021911

19031912

1913+
--- A setter for the accuracy spread of a weapon.
1914+
---
1915+
--- @hash [0x598DD6AE](https://docs.fivem.net/natives/?_0x598DD6AE)
1916+
--- @param weaponHash Hash
1917+
--- @param spread number (float)
1918+
--- @return void
1919+
--- @overload fun(weaponHash: Hash, spread: number): void
1920+
function SetWeaponAccuracySpread(weaponHash, spread) end
1921+
1922+
19041923
--- Get all track nodes and their track ids within the radius of the specified coordinates.
19051924
---
19061925
--- @hash [0x59FC24A7](https://docs.fivem.net/natives/?_0x59FC24A7)
@@ -3551,6 +3570,15 @@ function SetAudioSubmixEffectParamFloat(submixId, effectSlot, paramIndex, paramV
35513570
function GetEntityAddress(entity) end
35523571

35533572

3573+
--- GetTrainTrackIndex
3574+
---
3575+
--- @hash [0x9AA339D](https://docs.fivem.net/natives/?_0x9AA339D)
3576+
--- @param train Vehicle
3577+
--- @return number
3578+
--- @overload fun(train: Vehicle): number
3579+
function GetTrainTrackIndex(train) end
3580+
3581+
35543582
--- GetVehicleDashboardSpeed
35553583
---
35563584
--- @hash [0x9AAD420E](https://docs.fivem.net/natives/?_0x9AAD420E)

docs-gen/server-cfx.def.lua

Lines changed: 4 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -173,16 +173,6 @@ function IsPedHandcuffed(ped) end
173173
function MumbleCreateChannel(id) end
174174

175175

176-
--- Nonsynchronous [SET_RESOURCE_KVP_INT](https://docs.fivem.net/natives/?_0x6A2B1E8) operation; see [FLUSH_RESOURCE_KVP](https://docs.fivem.net/natives/?_0x5240DA5A).
177-
---
178-
--- @hash [0x26AEB707](https://docs.fivem.net/natives/?_0x26AEB707)
179-
--- @param key string (char*)
180-
--- @param value number (int)
181-
--- @return void
182-
--- @overload fun(key: string, value: number): void
183-
function SetResourceKvpIntNoSync(key, value) end
184-
185-
186176
--- Registers a listener for console output messages.
187177
---
188178
--- @hash [0x281B5448](https://docs.fivem.net/natives/?_0x281B5448)
@@ -287,16 +277,6 @@ function GetHeliRearRotorHealth(vehicle) end
287277
function SetConvar(varName, value) end
288278

289279

290-
--- Nonsynchronous [SET_RESOURCE_KVP_FLOAT](https://docs.fivem.net/natives/?_0x9ADD2938) operation; see [FLUSH_RESOURCE_KVP](https://docs.fivem.net/natives/?_0x5240DA5A).
291-
---
292-
--- @hash [0x3517BFBE](https://docs.fivem.net/natives/?_0x3517BFBE)
293-
--- @param key string (char*)
294-
--- @param value number (float)
295-
--- @return void
296-
--- @overload fun(key: string, value: number): void
297-
function SetResourceKvpFloatNoSync(key, value) end
298-
299-
300280
--- GetIsHeliEngineRunning
301281
---
302282
--- @hash [0x3EFE38D1](https://docs.fivem.net/natives/?_0x3EFE38D1)
@@ -306,15 +286,6 @@ function SetResourceKvpFloatNoSync(key, value) end
306286
function GetIsHeliEngineRunning(heli) end
307287

308288

309-
--- Nonsynchronous [DELETE_RESOURCE_KVP](https://docs.fivem.net/natives/?_0x7389B5DF) operation; see [FLUSH_RESOURCE_KVP](https://docs.fivem.net/natives/?_0x5240DA5A).
310-
---
311-
--- @hash [0x4152C90](https://docs.fivem.net/natives/?_0x4152C90)
312-
--- @param key string (char*)
313-
--- @return void
314-
--- @overload fun(key: string): void
315-
function DeleteResourceKvpNoSync(key) end
316-
317-
318289
--- GetPlayerLastMsg
319290
---
320291
--- @hash [0x427E8E6A](https://docs.fivem.net/natives/?_0x427E8E6A)
@@ -375,9 +346,11 @@ function GetPedScriptTaskStage(ped) end
375346
--- }
376347
--- ```
377348
---
378-
--- Sets what happens when the entity is orphaned and no longer has its original owner.
349+
--- Sets what the server will do when the entity no longer has its original owner. By default the server will cleanup entities that it considers "no longer relevant".
379350
---
380-
--- **NOTE**: This native doesn't guarantee the persistence of the entity.
351+
--- When used on trains, this native will recursively call onto all attached carriages.
352+
---
353+
--- **NOTE**: When used with `KeepEntity` (2) this native only guarantees that the ***server*** will not delete the entity, client requests to delete the entity will still work perfectly fine.
381354
---
382355
--- @hash [0x489E9162](https://docs.fivem.net/natives/?_0x489E9162)
383356
--- @param entity Entity
@@ -1164,16 +1137,6 @@ function GetVehicleInteriorColour(vehicle, color) end
11641137
function SetRoutingBucketPopulationEnabled(bucketId, mode) end
11651138

11661139

1167-
--- Nonsynchronous [SET_RESOURCE_KVP](https://docs.fivem.net/natives/?_0x21C7A35B) operation; see [FLUSH_RESOURCE_KVP](https://docs.fivem.net/natives/?_0x5240DA5A).
1168-
---
1169-
--- @hash [0xCF9A2FF](https://docs.fivem.net/natives/?_0xCF9A2FF)
1170-
--- @param key string (char*)
1171-
--- @param value string (char*)
1172-
--- @return void
1173-
--- @overload fun(key: string, value: string): void
1174-
function SetResourceKvpNoSync(key, value) end
1175-
1176-
11771140
--- GetEntityOrphanMode
11781141
---
11791142
--- @hash [0xD16EA02F](https://docs.fivem.net/natives/?_0xD16EA02F)

docs-gen/shared-cfx.def.lua

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,16 @@ function DeleteFunctionReference(referenceIdentity) end
3737
function SetResourceKvp(key, value) end
3838

3939

40+
--- Nonsynchronous [SET_RESOURCE_KVP_INT](https://docs.fivem.net/natives/?_0x6A2B1E8) operation; see [FLUSH_RESOURCE_KVP](https://docs.fivem.net/natives/?_0x5240DA5A).
41+
---
42+
--- @hash [0x26AEB707](https://docs.fivem.net/natives/?_0x26AEB707)
43+
--- @param key string (char*)
44+
--- @param value number (int)
45+
--- @return void
46+
--- @overload fun(key: string, value: number): void
47+
function SetResourceKvpIntNoSync(key, value) end
48+
49+
4050
--- A getter for [SET_PLAYER_WEAPON_DAMAGE_MODIFIER](https://docs.fivem.net/natives/?_0xCE07B9F7817AADA3).
4151
---
4252
--- @hash [0x2A3D7CDA](https://docs.fivem.net/natives/?_0x2A3D7CDA)
@@ -76,6 +86,16 @@ function GetPlayerWeaponDamageModifier(playerId) end
7686
function GetGamePool(poolName) end
7787

7888

89+
--- Nonsynchronous [SET_RESOURCE_KVP_FLOAT](https://docs.fivem.net/natives/?_0x9ADD2938) operation; see [FLUSH_RESOURCE_KVP](https://docs.fivem.net/natives/?_0x5240DA5A).
90+
---
91+
--- @hash [0x3517BFBE](https://docs.fivem.net/natives/?_0x3517BFBE)
92+
--- @param key string (char*)
93+
--- @param value number (float)
94+
--- @return void
95+
--- @overload fun(key: string, value: number): void
96+
function SetResourceKvpFloatNoSync(key, value) end
97+
98+
7999
--- A getter for [SET_RESOURCE_KVP_FLOAT](https://docs.fivem.net/natives/?_0x9ADD2938).
80100
--- @usage local kvpValue = GetResourceKvpFloat('mollis')
81101
--- if kvpValue ~= 0.0 then
@@ -132,6 +152,15 @@ function EnsureEntityStateBag(entity) end
132152
function GetResourceState(resourceName) end
133153

134154

155+
--- Nonsynchronous [DELETE_RESOURCE_KVP](https://docs.fivem.net/natives/?_0x7389B5DF) operation; see [FLUSH_RESOURCE_KVP](https://docs.fivem.net/natives/?_0x5240DA5A).
156+
---
157+
--- @hash [0x4152C90](https://docs.fivem.net/natives/?_0x4152C90)
158+
--- @param key string (char*)
159+
--- @return void
160+
--- @overload fun(key: string): void
161+
function DeleteResourceKvpNoSync(key) end
162+
163+
135164
--- GetVehicleHandbrake
136165
---
137166
--- @hash [0x483B013C](https://docs.fivem.net/natives/?_0x483B013C)
@@ -676,6 +705,16 @@ function ProfilerEnterScope(scopeName) end
676705
function IsDuplicityVersion() end
677706

678707

708+
--- Nonsynchronous [SET_RESOURCE_KVP](https://docs.fivem.net/natives/?_0x21C7A35B) operation; see [FLUSH_RESOURCE_KVP](https://docs.fivem.net/natives/?_0x5240DA5A).
709+
---
710+
--- @hash [0xCF9A2FF](https://docs.fivem.net/natives/?_0xCF9A2FF)
711+
--- @param key string (char*)
712+
--- @param value string (char*)
713+
--- @return void
714+
--- @overload fun(key: string, value: string): void
715+
function SetResourceKvpNoSync(key, value) end
716+
717+
679718
--- An internal function which allows the current resource's HLL script runtimes to receive state for the specified event.
680719
---
681720
--- @hash [0xD233A168](https://docs.fivem.net/natives/?_0xD233A168)

0 commit comments

Comments
 (0)