Properties
mapBlip
map
Blip
: { create
: (config
: MapBlip) => MapBlip; edit
: (blipId
: number, newConfig
: MapBlip) => MapBlip; lists
: {}; remove
: (blipId
: number) => void } = ...Type declaration
edit: (blipId: number, newConfig: MapBlip) => MapBlip
lists: {}
remove: (blipId: number) => void
Methods
createFeedNotification
- createFeedNotification(text: string, config?: { backgroundColor?: number }): void
Parameters
text: string
config: { backgroundColor?: number } = {}
Optional backgroundColor?: number
Returns void
createHelpNotification
- createHelpNotification(text: string, config?: { beep?: boolean }): void
Parameters
text: string
config: { beep?: boolean } = {}
Returns void
drawInstructionalButtons
- drawInstructionalButtons(buttonList: { controlId: number; controlType: number; message: string }[]): Promise<number>
Parameters
buttonList: { controlId: number; controlType: number; message: string }[]
Returns Promise<number>
drawText
- drawText(text: string, config: { font?: number; size?: number; x: number; y: number }): void
Parameters
text: string
config: { font?: number; size?: number; x: number; y: number }
Optional font?: number
Optional size?: number
x: number
y: number
Returns void
drawText3D
- drawText3D(text: string, config: { colour: [number, number, number, number]; font?: number; size?: number; x: number; y: number; z: number }): void
Parameters
text: string
config: { colour: [number, number, number, number]; font?: number; size?: number; x: number; y: number; z: number }
colour: [number, number, number, number]
Optional font?: number
Optional size?: number
x: number
y: number
z: number
Returns void
getCamDirection
- getCamDirection(): { x: number; y: number; z: number }
Returns { x: number; y: number; z: number }
x: number
y: number
z: number
getCamTargetedCoords
- getCamTargetedCoords(distance: number): { x: number; y: number; z: number }
Parameters
Returns { x: number; y: number; z: number }
x: number
y: number
z: number
getHashString
- getHashString(val: string): string
getTargetedEntity
- getTargetedEntity(distance: number): { entityHit: number; x: number; y: number; z: number }
Parameters
Returns { entityHit: number; x: number; y: number; z: number }
entityHit: number
x: number
y: number
z: number
Map Blip Functions