_GET_EASING_CURVE_VALUE
Evaluates the easing curve easingCurveType at time t, using b as the start value and d as the duration, and returns the result.
Signature
float _GET_EASING_CURVE_VALUE(float t, float b, float d, int easingCurveType); // 0xEF50E344A8F93784 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | t | float |
| 2 | b | float |
| 3 | d | float |
| 4 | easingCurveType | int |
Facts
| Name | _GET_EASING_CURVE_VALUE |
|---|---|
| Hash | 0xEF50E344A8F93784 |
| Namespace | |
| Returns | float |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local result = Citizen.InvokeNative(0xEF50E344A8F93784, -- _GET_EASING_CURVE_VALUE
0.0, -- float t
0.0, -- float b
0.0, -- float d
0, -- int easingCurveType
Citizen.ResultAsFloat()
)
print(result)// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
const result = Citizen.invokeNative("0xEF50E344A8F93784", // _GET_EASING_CURVE_VALUE
0.0, // float t
0.0, // float b
0.0, // float d
0, // int easingCurveType
Citizen.resultAsFloat()
);
console.log(result)float result = Function.Call<float>((Hash)0xEF50E344A8F93784, // _GET_EASING_CURVE_VALUE
0.0f, // float t
0.0f, // float b
0.0f, // float d
0 // int easingCurveType
);Related MISC natives
- _GET_ENTITY_FROM_ITEM
- _GET_AI_PED_DOES_HAVE_EVENT_MEMORY
- _GET_FORCED_WEATHER
- _GET_GAME_TIMER_NON_SCALED_CLIPPED
- _GET_GROUND_Z_AND_MATERIAL_FOR_3D_COORD
- _GET_ITEM_TYPE
- _GET_LOOTING_EVENT_HAS_FIRED
- _GET_MAX_NUM_INSTRUCTIONS
- _GET_NEXT_WEATHER_TYPE_HASH_NAME
- _GET_NUMBER_OF_BULLETS_IMPACTED_ENTITY
- _GET_NUMBER_OF_BULLETS_IN_AREA
- _GET_NUMBER_OF_INSTRUCTIONS
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.