SelectEntityAtPos — FiveM Natives
0xAFE8D405 · CFX · client
Gets the selected entity at the specified mouse cursor position, and changes the current selection depth. This function supports SDK infrastructure and is not intended to be used directly from your code.
Parameters
| Name | Type | Description |
|---|---|---|
| fracX | float | Mouse cursor X fraction. |
| fracY | float | Mouse cursor Y fraction. |
| hitFlags | int | A bit mask of entity types to match. |
| precise | BOOL | Whether to do a *precise* test, i.e. of visual coordinates, too. |
Returns
Entity