Extend it by interface merging for use in global meta alt.getMeta, alt.setMeta, etc.
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
Extend it by interface merging for use in global meta alt.getMeta, alt.setMeta, etc.
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