UNPKG

gtavjs-utils-mod

Version:

Utility mod for GTAVJS.

45 lines (40 loc) 1.8 kB
declare module "gtavjs-utils-mod/scripts/notification" { /** * Show notification assigned with an ID. * Using the same ID with overwritte the previous notification. * Notification will also clear when reloading mods. * @param message The notification message * @param id The unique id for this notification */ export function SimpleNotify(message: string, id?: string): void; /** * Show notification assigned with an ID. * Using the same ID with overwritte the previous notification. * Notification will also clear when reloading mods. * @param message The notification message * @param id The unique id for this notification */ export function SimpleNotifyBlinking(message: string, id?: string): void; /** * Clear a specific notification from its ID * @param id The unique id for the notification to clear */ export function ClearNotification(id?: string): void; /** * Clear all shown notifications */ export function ClearAllNotifications(): void; } declare module "gtavjs-utils-mod/scripts/teleport" { /// <reference types="gtavjs-typing" /> /** * Teleport a ped/character to a new position. * Fade only if teleporting the player. * This function execute in a different thread and has a callback. * @param character The ped/character to teleport * @param position The target position to teleport to * @param fadeTime The amount of millisecond to fade the screen * @param callback The callback function to execute when teleportation has finished */ export default function Teleport(character: GTA.Ped, position: GTA.Math.Vector3, fadeTime?: number, callback?: () => void): void; }