--  LUA GetMapdataEntityMatrix

0x2C3CDA93

-- GET_MAPDATA_ENTITY_MATRIX
local retval --[[ boolean ]] =
	GetMapdataEntityMatrix(
		mapDataHash --[[ integer ]], 
		entityInternalIdx --[[ integer ]], 
		matrixPtr --[[ long ]]
	)

Parameters:

    mapDataHash:

    A mapdata hash from mapDataLoaded event.
    entityInternalIdx:

    An internal entity's index.
    matrixPtr:

    A mutable pointer to a 64-byte buffer of floating-point values, representing an XMFLOAT4X4 in layout.

Returns:

Whether or not the matrix was retrieved.

Returns mapdata's entity matrix. This function supports SDK infrastructure and is not intended to be used directly from your code.

This should be used from JavaScript or another language supporting mutable buffers like ArrayBuffer.

Matrix layout is as follows:

    Element [0], [1] and [2] should represent the right vector.
    Element [4], [5] and [6] should represent the forward vector.
    Element [8], [9] and [10] should represent the up vector.
    Element [12], [13] and [14] should represent X, Y and Z translation coordinates.
    All other elements should be [0, 0, 0, 1].

 
 

Parameters:

header:

sentence.

header:

sentence.

header:

sentence.

Returns:

sentence.

Summary

sentence.

Example

---  
    


Additional natives used in this example, or natives commonly used with this native.

NATIVE, NATIVE

Common Errors or Problems

Problem: sentence.

Problem: sentence.

Problem: sentence.

Credits and Disclaimers

The base of this data was taken from the redm/cfx fivem/rdr docs, and vespura. We have been saving and making notes for two years now, and are now adding them to our site for everyone to use. We will be modifying the notes as needed, and building tutorials around the data so these pages will change as we work on it. This is a manual process, not an automated one, so updates will occur as we have time, the priority is releasing resources. Thanks for your patience.

Was the documentation useful?

Related Examples and Posts