GetScaleformMovieCursorSelection — FiveM Natives
0x632B2940C67F4EA9 · HUD · all
Gets mouse selection data from scaleforms with mouse support. Must be checked every frame. Returns item index if using the COLOUR_SWITCHER\_02 scaleform. Selection types, found in MOUSE_EVENTS.as: MOUSE_DRAG_OUT = 0; MOUSE_DRAG_OVER = 1; MOUSE_DOWN = 2; MOUSE_MOVE = 3; MOUSE_UP = 4; MOUSE_PRESS = 5; MOUSE_RELEASE = 6; MOUSE_RELEASE_OUTSIDE = 7; MOUSE_ROLL_OUT = 8; MOUSE_ROLL_OVER = 9; MOUSE_WHEEL_UP = 10; MOUSE_WHEEL_DOWN = 11; Scaleforms that this works with: COLOUR_SWITCHER\_02 MP_RESULTS_PANEL MP_NEXT_JOB_SELECTION SC_LEADERBOARD Probably works with other scaleforms, needs more research. In order to use this Native you MUST have controls 239, 240, 237, 238 enabled! This native, due to its erroneous redundancy of the returned boolean value, works differently in C#: shifting the parameters (where received becomes selectionType and so on making the fourth parameter unused and always 0).
Parameters
| Name | Type | Description |
|---|---|---|
| scaleformHandle | int | Handle of the scaleform |
| received | bool* | Returns a boolean indicating if the data was received successfully (in Lua). |
| selectionType | int* | The type of MouseEvent specified above. |
| context | int* | Context of the slot the mouse is hovering on. |
| slotIndex | int* | Index of the slot the mouse is hovering on. |
Returns
BOOL