Natives ENTITY 0x9A8D700A51CB7B0D Vector3 GET_ENTITY_SPEED_VECTOR (Entity entity, BOOL relative); Documentation Community 0
Property
Value
Native Name
GET_ENTITY_SPEED_VECTOR
Hash
0x9A8D700A51CB7B0D
Return Type
Vector3
Parameters
entity (Entity), relative (BOOL)
Description: ```
Relative can be used for getting speed relative to the frame of the vehicle, to determine for example, if you are going in reverse (-y speed) or not (+y speed).
Back to ENTITY Before you callCitizen.InvokeNative in CitizenFX Lua does not auto-marshal float/Vector3 returns — the result comes back wrong (community reports both a plain boolean and only-the-x-component-as-a-number); for these returns use the named Lua wrapper (e.g. GetEntityVelocity, GetPedBoneCoords, GetOffsetFromEntityInWorldCoords) or append Citizen.ResultAsVector() / Citizen.ResultAsFloat() as the final InvokeNative argument, and in JS/TS (no wrapper exists) Citizen.resultAsVector() / resultAsFloat() is mandatory; plain int/handle and void returns are unaffected.
Let your AI read the fine print. Native signatures, warnings, and community context. Directly in your editor.
Connect via MCP