UNPKG

@nativewrappers/fivem

Version:

Native wrappers and utilities for use with FiveM.

20 lines (19 loc) 765 B
import { Color } from "../common/utils/Color"; import { Point } from "../utils/Point"; import { Size } from "../utils/Size"; export declare class Sprite { textureName: string; pos: Point; size: Size; heading: number; color: Color; visible: boolean; private _textureDict; constructor(textureDict: string, textureName: string, pos?: Point, size?: Size, heading?: number, color?: Color); loadTextureDictionary(): void; set TextureDict(v: string); get TextureDict(): string; get IsTextureDictionaryLoaded(): boolean; draw(resolution?: Size): void; draw(textureDictionary?: string, textureName?: string, pos?: Point, size?: Size, heading?: number, color?: Color, loadTexture?: boolean, resolution?: Size): void; }