Scripting/Client/Functions/Draw3DSprite
Same for an image downloaded with <sprite>. Max 512 per frame.
Syntax
Draw3DSprite(file, x, y, z [, distance [, scaleX [, scaleY]]])Draw3DSprite(file, Vector [, distance [, scaleX [, scaleY]]])Arguments
- string file
- float x
- float y
- float z
- float distance (optional)
- any scaleX (optional)
- any scaleY (optional)
- Vector value
Returns
bool
Example
function onScriptLoad()
{
local pos = player.Pos;
local result = Draw3DSprite( "example.png", pos.x, pos.y, pos.z );
MessagePlayer( "Draw3DSprite returned: " + result, player );
}This sample was generated from the signature – adapt the values to your gamemode.
Related pages
- GetScreenWidth
- WorldPosToScreen
- ScreenPosToWorld
- GetGroundZLevel
- GetGroundZLevelForPos
- GetGroundZLevelForPosLoad
- Draw3DText
- Draw3DTextWorld
- Draw3DSpriteWorld
- SetCameraMatrix
- SetCameraTarget
- RestoreCamera
Section: Screen, world and camera
Categories: Client functions | Screen, world and camera