Log In
Sign Up
Game code

HUD::GET_HUD_SCREEN_POSITION_FROM_WORLD_POSITION

0x710EF4BD4C637E9D ·RVA 0x044BE7A0

Signature

int GET_HUD_SCREEN_POSITION_FROM_WORLD_POSITION(
    Vector3 world,
    float* screenX,
    float* screenY
);

The scripts pass 4 values to this native; the decoded signature lists 3 (arguments the game doesn't read are left out).

Parameters 3

#TypeNameNotes
0Vector3world –
1float*screenX –
2float*screenY –

Returns

int

RDR3 says BOOL; the game writes a int.

Notes

  • Names from RDR3; types from the game code, which differs from RDR3's signature:
  • worldX, worldY and worldZ in RDR3 are one Vector3 in GTA VI.

Call it

// HUD::GET_HUD_SCREEN_POSITION_FROM_WORLD_POSITION
auto result = invoke<int>(0x710EF4BD4C637E9D, world, &screenX, &screenY);

Generic call-by-hash templates in the style of the common GTA V / RDR2 script frameworks. Adapt the types to your tooling.

Improve this page

Know what this native does, a better name, or the real parameter types? Suggest an edit. A moderator reviews every suggestion, and approved edits credit you here.