@citizenfx/client 2.0.15639-1 → 2.0.15697-1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/natives_universal.d.ts +10 -10
- package/package.json +1 -1
package/natives_universal.d.ts
CHANGED
|
@@ -1023,8 +1023,8 @@ declare function AddShockingEventForEntity(eventType: number, entity: number, du
|
|
|
1023
1023
|
* * **reserved**: Currently unused.
|
|
1024
1024
|
* * **replicated**: Whether the set is meant to be replicated.
|
|
1025
1025
|
* At this time, the change handler can't opt to reject changes.
|
|
1026
|
-
* If bagName refers to an entity, use [GET_ENTITY_FROM_STATE_BAG_NAME](
|
|
1027
|
-
* If bagName refers to a player, use [GET_PLAYER_FROM_STATE_BAG_NAME](
|
|
1026
|
+
* If bagName refers to an entity, use [GET_ENTITY_FROM_STATE_BAG_NAME](#\_0x4BDF1867) to get the entity handle
|
|
1027
|
+
* If bagName refers to a player, use [GET_PLAYER_FROM_STATE_BAG_NAME](#\_0xA56135E0) to get the player handle
|
|
1028
1028
|
* @param keyFilter The key to check for, or null for no filter.
|
|
1029
1029
|
* @param bagFilter The bag ID to check for such as `entity:65535`, or null for no filter.
|
|
1030
1030
|
* @param handler The handler function.
|
|
@@ -11787,7 +11787,7 @@ declare function GetEntityForwardX(entity: number): number;
|
|
|
11787
11787
|
declare function GetEntityForwardY(entity: number): number;
|
|
11788
11788
|
|
|
11789
11789
|
/**
|
|
11790
|
-
* Returns the entity handle for the specified state bag name. For use with [ADD_STATE_BAG_CHANGE_HANDLER](
|
|
11790
|
+
* Returns the entity handle for the specified state bag name. For use with [ADD_STATE_BAG_CHANGE_HANDLER](#\_0x5BA35AAF).
|
|
11791
11791
|
* @param bagName An internal state bag ID from the argument to a state bag change handler.
|
|
11792
11792
|
* @return The entity handle or 0 if the state bag name did not refer to an entity, or the entity does not exist.
|
|
11793
11793
|
*/
|
|
@@ -12456,7 +12456,7 @@ declare function GetGlobalCharBuffer(): string;
|
|
|
12456
12456
|
declare function N_0x24da7d7667fd7b09(): string;
|
|
12457
12457
|
|
|
12458
12458
|
/**
|
|
12459
|
-
* A getter for [SET_GLOBAL_PASSENGER_MASS_MULTIPLIER](#\
|
|
12459
|
+
* A getter for [SET_GLOBAL_PASSENGER_MASS_MULTIPLIER](#\_0x3422291C).
|
|
12460
12460
|
* @return Returns the mass of each passenger (not counting the driver) as a percentage of vehicle mass. Default value is 0.05
|
|
12461
12461
|
*/
|
|
12462
12462
|
declare function GetGlobalPassengerMassMultiplier(): number;
|
|
@@ -25328,14 +25328,14 @@ declare function SubtractAFromBAndCheckIfNegative(timeA: number, timeB: number):
|
|
|
25328
25328
|
declare function IsToggleModOn(vehicle: number, modType: number): boolean;
|
|
25329
25329
|
|
|
25330
25330
|
/**
|
|
25331
|
-
* Getter for [SET_TRACK_ENABLED](
|
|
25331
|
+
* Getter for [SET_TRACK_ENABLED](#\_0x4B41E84C)
|
|
25332
25332
|
* @param track The track id (between 0 - 27)
|
|
25333
25333
|
* @return If this track is enabled.
|
|
25334
25334
|
*/
|
|
25335
25335
|
declare function IsTrackEnabled(track: number): boolean;
|
|
25336
25336
|
|
|
25337
25337
|
/**
|
|
25338
|
-
* Getter for [SWITCH_TRAIN_TRACK](
|
|
25338
|
+
* Getter for [SWITCH_TRAIN_TRACK](#\_0xFD813BB7DB977F20). Determines if ambient trains are able to spawn on this track.
|
|
25339
25339
|
* @param track The track id (between 0 - 27)
|
|
25340
25340
|
* @return If this track allows ambient trains to spawn
|
|
25341
25341
|
*/
|
|
@@ -41131,7 +41131,7 @@ declare function RegisterResourceAsEventHandler(eventName: string): void;
|
|
|
41131
41131
|
|
|
41132
41132
|
/**
|
|
41133
41133
|
* Registers a custom rope data with the game. For guidance on what these values should be use common:/data/ropedata.xml as a reference.
|
|
41134
|
-
* Returns a rope type which can be passed into [ADD_ROPE](
|
|
41134
|
+
* Returns a rope type which can be passed into [ADD_ROPE](#\_0xE832D760399EB220) to use a custom rope design.
|
|
41135
41135
|
* Once a rope data is registered it can be used indefinitely and you should take caution not too register too many as to exceed the games limit.
|
|
41136
41136
|
* @return Returns a non-negative value on success, or -1 if the rope data could not be registered or an invalid argument is passed.
|
|
41137
41137
|
*/
|
|
@@ -50411,7 +50411,7 @@ declare function SetPedCollectionPreloadPropData(ped: number, anchorPoint: numbe
|
|
|
50411
50411
|
/**
|
|
50412
50412
|
* An alternative to [SET_PED_PRELOAD_VARIATION_DATA](#\_0x39D55A620FCB6A3A) that uses local collection indexing instead of the global one.
|
|
50413
50413
|
* The local / collection relative indexing is useful because the global index may get shifted after Title Update. While local index will remain the same which simplifies migration to the newer game version.
|
|
50414
|
-
* Collection name and local index inside the collection can be obtained from the global index using [GET_PED_COLLECTION_NAME_FROM_DRAWABLE](#\
|
|
50414
|
+
* Collection name and local index inside the collection can be obtained from the global index using [GET_PED_COLLECTION_NAME_FROM_DRAWABLE](#\_0xD6BBA48B) and [GET_PED_COLLECTION_LOCAL_INDEX_FROM_DRAWABLE](#\_0x94EB1FE4) natives.
|
|
50415
50415
|
* @param ped The target ped
|
|
50416
50416
|
* @param componentId One of the components from [SET_PED_COMPONENT_VARIATION](#\_0x262B14F48D29DE80)
|
|
50417
50417
|
* @param collection Name of the collection. Empty string for the base game collection. See [GET_PED_COLLECTION_NAME](#\_0xFED5D83A) in order to list all available collections.
|
|
@@ -55003,7 +55003,7 @@ declare function SetTrainSpeed(train: number, speed: number): void;
|
|
|
55003
55003
|
* SET_TRAIN_STATE
|
|
55004
55004
|
* @param train The train handle
|
|
55005
55005
|
* @param state The trains new state
|
|
55006
|
-
* @return The trains current state, refer to [GET_TRAIN_STATE](
|
|
55006
|
+
* @return The trains current state, refer to [GET_TRAIN_STATE](#\_0x81B50033)
|
|
55007
55007
|
*/
|
|
55008
55008
|
declare function SetTrainState(train: number, state: number): void;
|
|
55009
55009
|
|
|
@@ -58114,7 +58114,7 @@ declare function SetWeaponsNoAutoswap(state: boolean): void;
|
|
|
58114
58114
|
* SET_WEATHER_CYCLE_ENTRY
|
|
58115
58115
|
* @param index The index of the entry to set. Must be between 0 and 255
|
|
58116
58116
|
* @param typeName The name of the weather type for this cycle
|
|
58117
|
-
* @param timeMult The relative duration of this cycle, which is multiplied by `msPerCycle` during ['APPLY_WEATHER_CYCLES'](#\
|
|
58117
|
+
* @param timeMult The relative duration of this cycle, which is multiplied by `msPerCycle` during ['APPLY_WEATHER_CYCLES'](#\_0x3422291C). Must be between 1 and 255
|
|
58118
58118
|
* @return Returns true if all parameters were valid, otherwise false.
|
|
58119
58119
|
*/
|
|
58120
58120
|
declare function SetWeatherCycleEntry(index: number, typeName: string, timeMult: number): boolean;
|