@nativewrappers/client
Version:
Javascript/Typescript wrapper for the FiveM natives
17 lines (16 loc) • 934 B
TypeScript
import { HudColor, NotificationType } from '../enums';
import { Color, Size, Vector3 } from '../utils';
import { Notification } from './';
export declare abstract class Screen {
static get Resolution(): Size;
static get ScaledResolution(): Size;
static get Width(): number;
static get ScaledWidth(): number;
static get Height(): number;
static get AspectRatio(): number;
static showSubtitle(message: string, duration?: number): void;
static displayHelpTextThisFrame(message: string): void;
static showNotification(message: string, blinking?: boolean): Notification;
static showAdvancedNotification(message: string, title: string, subtitle: string, iconSet: string, icon: string, bgColor?: HudColor, flashColor?: Color, blinking?: boolean, type?: NotificationType, showInBrief?: boolean, sound?: boolean): Notification;
static worldToScreen(position: Vector3, scaleWidth?: boolean): Size;
}