Graphics::screen2dToWorld3d

From RAGE Multiplayer Wiki
Jump to navigation Jump to search

Returns world position from screen position

Syntax

mp.game.graphics.screen2dToWorld3d(coords2d);

Required Arguments

  • Vector3: 2d coord

Return value

  • position: Vector3

Example

let pos3d = mp.game.graphics.screen2dToWorld3d(new mp.Vector3(screenX, screenY, 0));

See also