Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface 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

Hierarchy

  • ICustomGlobalMeta