Skip to content
This repository was archived by the owner on Apr 19, 2025. It is now read-only.

Commit c3cc89c

Browse files
ci: generate native definitions
1 parent 74c4d03 commit c3cc89c

File tree

1 file changed

+46
-3
lines changed

1 file changed

+46
-3
lines changed

library/natives/CFX-NATIVE/CFX.lua

Lines changed: 46 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2136,6 +2136,24 @@ function GetPedModelPersonality(modelHash) end
21362136
---@return integer
21372137
function GetPedMovementClipset(ped) end
21382138

2139+
---**`CFX` `client`**
2140+
---[Native Documentation](https://docs.fivem.net/natives/?_0xCD420AD1)
2141+
---An analogue to [GET_PED_PROP_INDEX](#\_0x898CC20EA75BACD8) that returns collection local prop index (inside [GET_PED_PROP_COLLECTION_NAME](#\_0x6B5653E4) collection) instead of the global prop index.
2142+
---@param ped integer
2143+
---@param anchorPoint integer
2144+
---@return integer
2145+
function GetPedPropCollectionLocalIndex(ped, anchorPoint) end
2146+
2147+
---**`CFX` `client`**
2148+
---[Native Documentation](https://docs.fivem.net/natives/?_0x6B5653E4)
2149+
---An analogue to [GET_PED_PROP_INDEX](#\_0x898CC20EA75BACD8) that returns collection name instead of the global drawable index.
2150+
---
2151+
---Should be used together with [GET_PED_PROP_COLLECTION_LOCAL_INDEX](#\_0xCD420AD1).
2152+
---@param ped integer
2153+
---@param anchorPoint integer
2154+
---@return string
2155+
function GetPedPropCollectionName(ped, anchorPoint) end
2156+
21392157
---**`CFX` `client`**
21402158
---[Native Documentation](https://docs.fivem.net/natives/?_0x2CB45CDC)
21412159
---Returns global prop index based on the local one. Is it a reverse to [GET_PED_COLLECTION_NAME_FROM_PROP](#\_0x8ED0C17) and [GET_PED_COLLECTION_LOCAL_INDEX_FROM_PROP](#\_0xFBDB885F) natives.
@@ -2981,10 +2999,11 @@ function GetVehicleDoorsLockedForPlayer(vehicle) end
29812999

29823000
---**`CFX` `server`**
29833001
---[Native Documentation](https://docs.fivem.net/natives/?_0x6E35C49C)
2984-
---This native does not have an official description.
3002+
---Returns the open position of the specified door on the target vehicle.
29853003
---@param vehicle integer
3004+
---@param doorIndex integer
29863005
---@return integer
2987-
function GetVehicleDoorStatus(vehicle) end
3006+
function GetVehicleDoorStatus(vehicle, doorIndex) end
29883007

29893008
---**`CFX` `client`**
29903009
---[Native Documentation](https://docs.fivem.net/natives/?_0x21C1DA8E)
@@ -3546,6 +3565,12 @@ function GetVehicleWindowTint(vehicle) end
35463565
---@return boolean, integer, integer, integer
35473566
function GetVehicleXenonLightsCustomColor(vehicle) end
35483567

3568+
---**`CFX` `client`**
3569+
---[Native Documentation](https://docs.fivem.net/natives/?_0x16605B30)
3570+
---A getter for [SET_VEHICLE_XMAS_SNOW_FACTOR](#\_80cc4c9e).
3571+
---@return number
3572+
function GetVehicleXmasSnowFactor() end
3573+
35493574
---**`CFX` `client`**
35503575
---[Native Documentation](https://docs.fivem.net/natives/?_0x14088095)
35513576
---This native does not have an official description.
@@ -4151,7 +4176,13 @@ function LoadPlayerCommerceData(playerSrc) end
41514176

41524177
---**`CFX` `server`**
41534178
---[Native Documentation](https://docs.fivem.net/natives/?_0x7995539E)
4154-
---Requests the commerce data from Tebex for the specified player, including the owned SKUs. Use `IS_PLAYER_COMMERCE_INFO_LOADED` to check if it has loaded.
4179+
---Requests the commerce data from Tebex for the specified player, including the owned SKUs.
4180+
---
4181+
---Use [`IS_PLAYER_COMMERCE_INFO_LOADED_EXT`](#\_0x1D14F4FE) to check if it has loaded.
4182+
---
4183+
---This will not automatically update whenever a client purchases a package, if you want to fetch new purchases you will need to call this native again.
4184+
---
4185+
---This native will temporarily cache the players commerce data for 10 seconds, a call to this native after 10 seconds will re-fetch the players commerce data.
41554186
---@param playerSrc string
41564187
function LoadPlayerCommerceDataExt(playerSrc) end
41574188

@@ -4437,6 +4468,12 @@ function NetworkGetNetworkIdFromEntity(entity) end
44374468
---@return vector3
44384469
function NetworkGetVoiceProximityOverrideForPlayer(playerSrc) end
44394470

4471+
---**`CFX` `client`**
4472+
---[Native Documentation](https://docs.fivem.net/natives/?_0x30CE39D8)
4473+
---Toggles a check that prevents attaching (networked) entities to remotely owned peds. This is disabled by default.
4474+
---@param enable boolean
4475+
function OnesyncEnableRemoteAttachmentSanitization(enable) end
4476+
44404477
---**`CFX` `client`**
44414478
---[Native Documentation](https://docs.fivem.net/natives/?_0x90A9E0B2)
44424479
---Sets whether peds can stand on top of *all* vehicles without falling off.
@@ -7389,6 +7426,12 @@ SetVehicleWheelXrot = SetVehicleWheelYRotation
73897426
---@param blue integer
73907427
function SetVehicleXenonLightsCustomColor(vehicle, red, green, blue) end
73917428

7429+
---**`CFX` `client`**
7430+
---[Native Documentation](https://docs.fivem.net/natives/?_0x80CC4C9E)
7431+
---This native does not have an official description.
7432+
---@param gripFactor number
7433+
function SetVehicleXmasSnowFactor(gripFactor) end
7434+
73927435
---**`CFX` `client`**
73937436
---[Native Documentation](https://docs.fivem.net/natives/?_0xD1D31681)
73947437
---Overrides a floating point value from `visualsettings.dat` temporarily.

0 commit comments

Comments
 (0)