CocaColaBear / types-ragemp-c

Rage:MP TypeScript type definition for Client-side
https://rage.mp/
MIT License
53 stars 60 forks source link

Types GXT does not exists #59

Closed Mauricio-Arantes closed 4 years ago

Mauricio-Arantes commented 4 years ago

Hello! First at all, you make a amazing job create this!!

I see in the file where you declare the interfaces you not declare the GXT functions. i made a newbie "solution" but maybe can help with something

`interface GameMp { ... zone: GameZoneMp; gxt: GxtTypes;

invoke(hash: string, ...args: any[]): any;
joaat(text: string): Hash;
joaat(textArray: string[]): Hash[];
wait(ms: number): void;

}`

interface GxtTypes { set(labelNameOrHash:number | string, newLabelValue: string ): any; get(labelNameOrHash:number | string): any; getDefault(labelNameOrHash:number | string): any; reset(): any; }

CocaColaBear commented 4 years ago

Check v1.0 branch