The RedM developer’s field guide
Know the native.
Build the world.
Engine functions, framework docs, and game assets.
One reference. From the first lookup to the last line.
knowledge base
Explore / RedM
Native reference
- MISCBOOL
_GET_AI_PED_DOES_HAVE_EVENT_MEMORY
Description not yet documented
0xFDF38E2B711BF78E - MISCfloat
GET_ANGLE_BETWEEN_2D_VECTORS
Description not yet documented
0xD0DFE1C486097BBB - MISCint
GET_BENCHMARK_ITERATIONS
Returns value of the '-benchmarkIterations' command line option. Old name: _GET_BENCHMARK_ITERATIONS_FROM_COMMAND_LINE
0x22FC52CF470CC98D - MISCint
GET_BENCHMARK_PASS
Returns value of the '-benchmarkPass' command line option. Old name: _GET_BENCHMARK_PASS_FROM_COMMAND_LINE
0x9297DACF3A2CDFF7 - MISCint
GET_BITS_IN_RANGE
Description not yet documented
0x68E1352AF48F905D - MISCVector3
GET_CLOSEST_POINT_ON_LINE
Description not yet documented
0x83ACC65D9ACEC5EF - MISCBOOL
GET_COORDS_OF_PROJECTILE_TYPE_WITHIN_DISTANCE
Description not yet documented
0xD73C960A681052DF - MISCvoid
GET_CURR_WEATHER_STATE
Params: percentWeather2: 0f - 0.75f in R* Scripts Old name: _GET_WEATHER_TYPE_TRANSITION
0x0AC679B2342F14F2 - MISCfloat
GET_DISTANCE_BETWEEN_COORDS
If useZ is false, only the 2D plane (X-Y) will be considered for calculating the distance. Consider using this faster native instead: BUILTIN::VDIST - DVIST always takes in consideration the 3D coordinates.
0x0BE7F4E3CDBAFB28 - MISCfloat
_GET_EASING_CURVE_VALUE
https://easings.net/ enum class eEasingCurveType { TYPE_LINEAR, TYPE_QUADRATIC_IN, TYPE_QUADRATIC_OUT, TYPE_QUADRATIC_INOUT, TYPE_CUBIC_IN, TYPE_CUBIC_OUT, TYPE_CUBIC_INOUT, TYPE_QUARTIC_IN, TYPE_QUARTIC_OUT, TYPE_QUARTIC_INOUT, TYPE_QUINTIC_IN, TYPE_QUINTIC_OUT, TYPE_QUINTIC_INOUT, TYPE_EXPONENTIAL_IN, TYPE_EXPONENTIAL_OUT, TYPE_EXPONENTIAL_INOUT, TYPE_SINE_IN, TYPE_SINE_OUT, TYPE_SINE_INOUT, TYPE_CIRCULAR_IN, TYPE_CIRCULAR_OUT, TYPE_CIRCULAR_INOUT, TYPE_BOUNCE_IN, TYPE_BOUNCE_OUT, TYPE_BOUNCE_INOUT, TYPE_CUSTOM };
0xEF50E344A8F93784 - MISCEntity
_GET_ENTITY_FROM_ITEM
Description not yet documented
0xEE04C0AFD4EFAF0E - MISCvoid
_GET_FORCED_WEATHER
Returns the weather type that has been set by a script
0xDD560ABEF5D3784C - MISCint
GET_FRAME_COUNT
Description not yet documented
0x77DFA958FCF100C1 - MISCfloat
GET_FRAME_TIME
Also known as "delta time"
0x5E72022914CE3C38 - MISCint
GET_GAME_TIMER
Description not yet documented
0x4F67E8ECA7D3F667 - MISCint
_GET_GAME_TIMER_NON_SCALED_CLIPPED
Returns rage::fwTimer::sm_nonScaledClippedTime
0x483B8C542103AD72 - MISCBOOL
_GET_GROUND_Z_AND_MATERIAL_FOR_3D_COORD
Outputs the ground Z axis, its outMaterialHash and flags. Input flags are 17, 129 or 3423 in R* scripts. Surely similar to flags of shapes test.
0xBBE5B63EFFB08E68 - MISCBOOL
GET_GROUND_Z_AND_NORMAL_FOR_3D_COORD
Description not yet documented
0x2A29CA9A6319E6AB - MISCBOOL
GET_GROUND_Z_FOR_3D_COORD
Description not yet documented
0x24FA4267BB8D2431 - MISCHash
GET_HASH_KEY
Computes a hash for the given string. It is hashed using Jenkins' One-at-a-Time hash algorithm (https://en.wikipedia.org/wiki/Jenkins_hash_function) Note: this implementation is case-insensitive.
0xFD340785ADF8CFB7 - MISCfloat
GET_HEADING_FROM_VECTOR_2D
dx = x1 - x2 dy = y1 - y2
0x38D5202FF9271C62 - MISCint
_GET_ITEM_TYPE
0 = invalid 1 = CEntity 2 = rage::volBase 3 = rage::volSphere 4 = rage::volBox 5 = rage::volAggregate 6 = rage::volCylinder 7 = CScriptedCoverPoint 8 = rage::ptfxScriptInfo 9 = CPed 10 = CVehicle 11 = CObject 12 = CItemSet 13 = CPersistentCharacter
0xDC8D2FF478DF9553 - MISCBOOL
GET_LINE_PLANE_INTERSECTION
Description not yet documented
0xAB6A04CEC428258B - MISCBOOL
_GET_LOOTING_EVENT_HAS_FIRED
Event names in the scripts: MGBegin, MGEnd, ReadyForCut
0xF9B91C5129EABC08 - MISCint
_GET_MAX_NUM_INSTRUCTIONS
Description not yet documented
0xC43CD2668B204419 - MISCBOOL
GET_MISSION_FLAG
Description not yet documented
0xB15CD1CF58771DE1 - MISCvoid
GET_MODEL_DIMENSIONS
Description not yet documented
0xDCB8DDD5D054A7E7 - MISCHash
_GET_NEXT_WEATHER_TYPE_HASH_NAME
Description not yet documented
0x51021D36F62AAA83 - MISCint
_GET_NUMBER_OF_BULLETS_IMPACTED_ENTITY
returns the number of bullets that hit the entity
0x970339EFA4FDE518 - MISCint
_GET_NUMBER_OF_BULLETS_IN_AREA
returns the number of bullets that were shot in the area
0xDC416CA762BC4F43 - MISCint
GET_NUMBER_OF_FREE_STACKS_OF_THIS_SIZE
Description not yet documented
0x40DC2907A9697EF7 - MISCint
_GET_NUMBER_OF_INSTRUCTIONS
Description not yet documented
0x72904D3D62AF5839 - MISCint
GET_NUMBER_OF_MICROSECONDS_SINCE_LAST_CALL
Description not yet documented
0xB0CE5E5ED8BB3581 - MISCObject
_GET_OBJECT_FROM_INDEXED_ITEM
Description not yet documented
0x18013392501CE5DC - MISCconst char*
GET_ONSCREEN_KEYBOARD_RESULT
Returns NULL unless UPDATE_ONSCREEN_KEYBOARD() returns 1 in the same tick.
0xAFB4CF58A4A292B1 - MISCPed
_GET_PED_FROM_INDEXED_ITEM
Description not yet documented
0x3FFB15534067DCD4 - MISCHash
_GET_PREV_WEATHER_TYPE_HASH_NAME
Description not yet documented
0x4BEB42AEBCA732E9 - MISCBOOL
GET_PROJECTILE_OF_PROJECTILE_TYPE_WITHIN_DISTANCE
Description not yet documented
0x9578986A6105A6AD - MISCfloat
GET_RAIN_LEVEL
Description not yet documented
0x931B5F4CC130224B - MISCBOOL
GET_RANDOM_EVENT_FLAG
Description not yet documented
0x924D54E5698AE3E0
A living reference. Documentation coverage varies by native and source.