_DRAW_INTERACTIVE_SPRITE
DocsDrawInteractiveSprite(textureDict, textureName, screenX, screenY, width, height, heading, red, green, blue, alpha)Description
Similar to \_DRAW_SPRITE, but seems to be some kind of "interactive" sprite, at least used by render targets.
These seem to be the only dicts ever requested by this native:
prop_screen_biker_laptop
Prop_Screen_GR_Disruption
Prop_Screen_TaleOfUs
prop_screen_nightclub
Prop_Screen_IE_Adhawk
prop_screen_sm_free_trade_shipping
prop_screen_hacker_truck
MPDesktop
Prop_Screen_Nightclub
And a few others
Parameters
| Name | Type | Description |
|---|---|---|
textureDict | char* | Name of texture dictionary to load texture from |
textureName | char* | Name of texture to load from texture dictionary |
screenX | float | Screen X |
screenY | float | Screen Y |
width | float | Scale X |
height | float | Scale Y |
heading | float | Texture rotation in degrees (default = 0.0) positive is clockwise, measured in degrees |
red | int | Color |
green | int | Color |
blue | int | Color |
alpha | int | Opacity level |
Quick Snippet: Get Coordinatesheading
headingAdd this command to your client script to retrieve precise locations in-game.
-- Add this to your client.lua. Type /pos in-game to copy coords.
RegisterCommand('pos', function()
local ped = PlayerPedId()
local coords = GetEntityCoords(ped)
local heading = GetEntityHeading(ped)
local output = string.format("vector4(%.2f, %.2f, %.2f, %.2f)", coords.x, coords.y, coords.z, heading)
print(output)
TriggerEvent('chat:addMessage', { args = { '^4[COORD]^0', output } })
end)Returns
voidThis native does not return a value.