- Documentation
- Cursor
Category
Cursor
All Lua functions and events in the Cursor category, on the server and the client.
Client functions 5
getReturns the cursor alpha (0-255).Cursor Alpha getReturns the current cursor shape: the name set withCursor Type setCursorType, or the shape the cursor took by itself over a browser.setSets the in-game cursor alpha (0 = invisible, 255 = opaque). The cursor shown withCursor Alpha showCursoris drawn by the game, above the HUD, GUI and browsers, so the alpha also shows on screenshots.setSwaps the game cursor for your own image: a PNG file from the resource or a texture fromCursor Image dxCreateTextureordxCreateRenderTarget. Calling it with no argument or withfalsereturns to the built-in cursor.setChanges the game cursor shape. Without an argument the cursor goes back to changing shape by itself: over a link in a browser it turns into a hand, over a text field into an I-beam.Cursor Type