@nativewrappers/client
Version:
Javascript/Typescript wrapper for the FiveM natives
18 lines (17 loc) • 687 B
TypeScript
import { Color, Point, Size } from '../utils';
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;
}