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
- CFXvoid
END_FIND_KVP
Description not yet documented
0xB3210203 - CFXvoid
END_FIND_OBJECT
Description not yet documented
0xDEDA4E50 - CFXvoid
END_FIND_PED
Description not yet documented
0x9615C2AD - CFXvoid
END_FIND_PICKUP
Description not yet documented
0x3C407D53 - CFXvoid
END_FIND_VEHICLE
Description not yet documented
0x9227415A - CFXvoid
ENSURE_ENTITY_STATE_BAG
Internal function for ensuring an entity has a state bag.
0x3BB78F05 - CFXvoid
ENTER_CURSOR_MODE
Enters cursor mode, suppressing mouse movement to the game and displaying a mouse cursor instead. This function supports SDK infrastructure and is not intended to be used directly from your code.
0x780DA86 - CFXvoid
EXECUTE_COMMAND
Depending on your use case you may need to use `add_acl resource.<your_resource_name> command.<command_name> allow` to use this native in your resource.
0x561C060B - CFXEntity
EXPERIMENTAL_LOAD_CLONE_CREATE
This native is not implemented.
0xD2CB95A3 - CFXvoid
EXPERIMENTAL_LOAD_CLONE_SYNC
This native is not implemented.
0x6BC189AC - CFXchar*
EXPERIMENTAL_SAVE_CLONE_CREATE
This native is not implemented.
0x9D65CAD2 - CFXchar*
EXPERIMENTAL_SAVE_CLONE_SYNC
This native is not implemented.
0x38D19210 - CFXint
FIND_FIRST_OBJECT
Description not yet documented
0xFAA6CB5D - CFXint
FIND_FIRST_PED
Description not yet documented
0xFB012961 - CFXint
FIND_FIRST_PICKUP
Description not yet documented
0x3FF9D340 - CFXint
FIND_FIRST_VEHICLE
Description not yet documented
0x15E55694 - CFXchar*
FIND_KVP
Description not yet documented
0xBD7BEBC5 - CFXBOOL
FIND_NEXT_OBJECT
Description not yet documented
0x4E129DBF - CFXBOOL
FIND_NEXT_PED
Description not yet documented
0xAB09B548 - CFXBOOL
FIND_NEXT_PICKUP
Description not yet documented
0x4107EF0F - CFXBOOL
FIND_NEXT_VEHICLE
Description not yet documented
0x8839120D - CFXvoid
FLAG_SERVER_AS_PRIVATE
Description not yet documented
0x13B6855D - CFXvoid
FLUSH_RESOURCE_KVP
Nonsynchronous operations will not wait for a disk/filesystem flush before returning from a write or delete call. They will be much faster than their synchronous counterparts (e.g., bulk operations), however, a system crash may lose the data to some recent operations. This native ensures all `_NO_SYNC` operations are synchronized with the disk/filesystem.
0xE27C97A0 - CFXvoid
FORCE_SNOW_PASS
Forces the game snow pass to render.
0xE6E16170 - CFXchar*
FORMAT_STACK_TRACE
An internal function for converting a stack trace object to a string.
0xD70C3BCA - CFXvoid
FREEZE_ENTITY_POSITION
Freezes or unfreezes an entity preventing its coordinates to change by the player if set to `true`. You can still change the entity position using [`SET_ENTITY_COORDS`](#\_0x06843DA7060A026B). **This is the server-side RPC native equivalent of the client native [FREEZE_ENTITY_POSITION](?\_0x428CA6DBD1094446).**
0x65C16D57 - CFXobject
GET_ACTIVE_PLAYERS
Returns all player indices for 'active' physical players known to the client. The data returned adheres to the following layout: ``` [127, 42, 13, 37] ```
0xCF143FB9 - CFXfloat
GET_AIR_DRAG_MULTIPLIER_FOR_PLAYERS_VEHICLE
Description not yet documented
0x62FC38D0 - CFXobject
GET_ALL_OBJECTS
Returns all object handles known to the server. The data returned adheres to the following layout: ``` [127, 42, 13, 37] ```
0x6886C3FE - CFXobject
GET_ALL_PEDS
Returns all peds handles known to the server. The data returned adheres to the following layout: ``` [127, 42, 13, 37] ```
0xB8584FEF - CFXobject
GET_ALL_ROPES
Returns all rope handles. The data returned adheres to the following layout: ``` [ 770, 1026, 1282, 1538, 1794, 2050, 2306, 2562, 2818, 3074, 3330, 3586, 3842, 4098, 4354, 4610, ...] ```
0x760A2D67 - CFXobject
GET_ALL_TRACK_JUNCTIONS
Returns all track junctions on the client The data returned adheres to the following structure: ``` [1, 2, 4, 6, 69, 420] ```
0x81A08523 - CFXobject
GET_ALL_VEHICLE_MODELS
Returns all registered vehicle model names, including non-dlc vehicles and custom vehicles in no particular order. **Example output** ``` ["dubsta", "dubsta2", "dubsta3", "myverycoolcar", "sultan", "sultanrs", ...] ``` This native will not return vehicles that are unregistered (i.e from a resource being stopped) during runtime.
0xD7531645 - CFXobject
GET_ALL_VEHICLES
Returns all vehicle handles known to the server. The data returned adheres to the following layout: ``` [127, 42, 13, 37] ```
0x332169F5 - CFXfloat
GET_AMBIENT_PED_RANGE_MULTIPLIER
A getter for [SET_AMBIENT_PED_RANGE_MULTIPLIER_THIS_FRAME](#\_0x0B919E1FB47CC4E0).
0xB550232D - CFXfloat
GET_AMBIENT_VEHICLE_RANGE_MULTIPLIER
A getter for [SET_AMBIENT_VEHICLE_RANGE_MULTIPLIER_THIS_FRAME](#\_0x90B6DA738A9A25DA).
0x667EC929 - CFXfloat
GET_ASPECT_RATIO
Gets the current aspect ratio ```lua local ratio = GetAspectRatio() print(string.format("%.2f", ratio)) ```
0x2CA8F641 - CFXint
GET_CALMING_QUAD_AT_COORDS
This native returns the index of a calming quad if the given point is inside its bounds.
0x870E8B40 - CFXBOOL
GET_CALMING_QUAD_BOUNDS
Description not yet documented
0xFF60E63 - CFXint
GET_CALMING_QUAD_COUNT
Description not yet documented
0xCEBFC42
A living reference. Documentation coverage varies by native and source.