Part of StarfallEx namespace
๐ External
render.cursorPos(ply, screen)๐ Has LDoc๐๏ธ 0 viewsUpdated 2 months ago
Description
Gets a 2D cursor position where ply is aiming at the current rendered screen or nil if they aren't aiming at it.
Parameters
| Name | Type | Description |
|---|---|---|
ply? | Player | player to get cursor position from. Default player() |
screen? | Entity | An explicit screen to get the cursor pos of (default: The current rendering screen using 'render' hook) |
Returns
| Type | Description |
|---|---|
number | X position or nil if the player is not aiming at the screen |
number | Y position or nil if the player is not aiming at the screen |
Examples
No examples available.
Used In
No usages found in the codebase.