Namespace Utils
Package: @altmp/altv-types
Classes
Functions
|
Improve this Doc
View Source
requestModel(string | number, number)
Declaration
requestModel(model: string | number, timeout?: number): Promise<void>
Parameters
Type |
Name |
Description |
string | number |
model |
|
number |
timeout |
|
Returns
Type |
Description |
Promise<void> |
|
|
Improve this Doc
View Source
requestAnimDict(string, number)
Declaration
requestAnimDict(animDict: string, timeout?: number): Promise<void>
Parameters
Type |
Name |
Description |
string |
animDict |
|
number |
timeout |
|
Returns
Type |
Description |
Promise<void> |
|
|
Improve this Doc
View Source
requestAnimSet(string, number)
Declaration
requestAnimSet(animSet: string, timeout?: number): Promise<void>
Parameters
Type |
Name |
Description |
string |
animSet |
|
number |
timeout |
|
Returns
Type |
Description |
Promise<void> |
|
|
Improve this Doc
View Source
requestClipSet(string, number)
Declaration
requestClipSet(clipSet: string, timeout?: number): Promise<void>
Parameters
Type |
Name |
Description |
string |
clipSet |
|
number |
timeout |
|
Returns
Type |
Description |
Promise<void> |
|
|
Improve this Doc
View Source
requestCutscene(string, string | number, number)
Declaration
requestCutscene(cutsceneName: string, flags: string | number, timeout?: number): Promise<void>
Parameters
Type |
Name |
Description |
string |
cutsceneName |
|
string | number |
flags |
|
number |
timeout |
|
Returns
Type |
Description |
Promise<void> |
|
|
Improve this Doc
View Source
drawText2dThisFrame(string, IVector2, GameFont, number, RGBA, boolean, boolean, TextAlign)
Declaration
drawText2dThisFrame(text: string, pos2d?: IVector2, font?: GameFont, scale?: number, color?: RGBA, outline?: boolean, dropShadow?: boolean, textAlign?: TextAlign): void
Parameters
|
Improve this Doc
View Source
drawText2d(string, IVector2, GameFont, number, RGBA, boolean, boolean, TextAlign)
Declaration
drawText2d(text: string, pos2d?: IVector2, font?: GameFont, scale?: number, color?: RGBA, outline?: boolean, dropShadow?: boolean, textAlign?: TextAlign): shared.Utils.EveryTick
Parameters
Returns
Type |
Description |
shared.Utils.EveryTick |
|
|
Improve this Doc
View Source
drawText3dThisFrame(string, IVector3, GameFont, number, RGBA, boolean, boolean, TextAlign)
Declaration
drawText3dThisFrame(text: string, pos3d: IVector3, font?: GameFont, scale?: number, color?: RGBA, outline?: boolean, dropShadow?: boolean, textAlign?: TextAlign): void
Parameters
|
Improve this Doc
View Source
drawText3d(string, IVector3, GameFont, number, RGBA, boolean, boolean, TextAlign)
Declaration
drawText3d(text: string, pos3d: IVector3, font?: GameFont, scale?: number, color?: RGBA, outline?: boolean, dropShadow?: boolean, textAlign?: TextAlign): shared.Utils.EveryTick
Parameters
Returns
Type |
Description |
shared.Utils.EveryTick |
|
|
Improve this Doc
View Source
loadMapArea(IVector3, number, number)
Declaration
loadMapArea(pos: IVector3, radius?: number, timeout?: number): Promise<void>
Parameters
Type |
Name |
Description |
IVector3 |
pos |
|
number |
radius |
|
number |
timeout |
|
Returns
Type |
Description |
Promise<void> |
|
|
Improve this Doc
View Source
registerPedheadshotBase64(number | Player)
Declaration
registerPedheadshotBase64(ped: number | Player): Promise<string>
Parameters
Type |
Name |
Description |
number | Player |
ped |
|
Returns
Type |
Description |
Promise<string> |
|
|
Improve this Doc
View Source
registerPedheadshot3Base64(number | Player)
Declaration
registerPedheadshot3Base64(ped: number | Player): Promise<string>
Parameters
Type |
Name |
Description |
number | Player |
ped |
|
Returns
Type |
Description |
Promise<string> |
|
|
Improve this Doc
View Source
registerPedheadshotTransparentBase64(number | Player)
Declaration
registerPedheadshotTransparentBase64(ped: number | Player): Promise<string>
Parameters
Type |
Name |
Description |
number | Player |
ped |
|
Returns
Type |
Description |
Promise<string> |
|
|
Improve this Doc
View Source
getClosestPlayer({ pos: IVector3 })
Declaration
getClosestPlayer(options?: { pos: IVector3 }): Player | null
Parameters
Type |
Name |
Description |
{ pos: IVector3 } |
options |
|
Returns
Type |
Description |
Player | null |
|
|
Improve this Doc
View Source
getClosestVehicle({ pos: IVector3 })
Declaration
getClosestVehicle(options?: { pos: IVector3 }): Vehicle | null
Parameters
Type |
Name |
Description |
{ pos: IVector3 } |
options |
|
Returns
|
Improve this Doc
View Source
getClosestObject({ pos: IVector3 })
Declaration
getClosestObject(options?: { pos: IVector3 }): Object | null
Parameters
Type |
Name |
Description |
{ pos: IVector3 } |
options |
|
Returns
Type |
Description |
Object | null |
|
|
Improve this Doc
View Source
getClosestWorldObject({ pos: IVector3 })
Declaration
getClosestWorldObject(options?: { pos: IVector3 }): Object | null
Parameters
Type |
Name |
Description |
{ pos: IVector3 } |
options |
|
Returns
Type |
Description |
Object | null |
|
|
Improve this Doc
View Source
getClosestVirtualEntity({ pos: IVector3 })
Declaration
getClosestVirtualEntity(options?: { pos: IVector3 }): VirtualEntity | null
Parameters
Type |
Name |
Description |
{ pos: IVector3 } |
options |
|
Returns