Skip to content

Commit

Permalink
server: Add hasBenefit method
Browse files Browse the repository at this point in the history
  • Loading branch information
xLuxy committed Oct 16, 2023
1 parent ba3414d commit f269e5b
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion server/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,11 @@ declare module "alt-server" {
Object = 8,
}

export const enum Benefit {
None,
CloudAuth,
}

export interface IConnectionInfo {
readonly name: string;
readonly socialID: string;
Expand Down Expand Up @@ -3256,9 +3261,17 @@ declare module "alt-server" {
*
* @alpha
*/

export function addClientConfigKey(key: string): void;

/**
* Checks wheter or not the server has a specific benefit.
*
* @param benefit benefit to check
*
* @alpha
*/
export function hasBenefit(benefit: Benefit): boolean;

/**
* Stops the specified resource.
*
Expand Down

0 comments on commit f269e5b

Please sign in to comment.