Skip to main content
Branch: Development

ICustomGlobalMeta

Extend it by interface merging for use in global meta alt.getMeta, alt.setMeta, etc.

Example

declare module "alt-shared" {
// extending interface by interface merging
export interface ICustomGlobalMeta {
numberExample: number
stringExample: string
}
}

const value = alt.getMeta("numberExample") // return value: number | undefined
alt.setMeta("stringExample", "value") // key: "stringExample", value: string