Skip to content

Commit

Permalink
chore: update readme to include predefined functions/props
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanzaida committed May 28, 2024
1 parent 1c124b6 commit 7708c3c
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1 +1,20 @@
LUA DOES NOT WORK FOR NOW


## JS
shared helper functions/props
```ts
declare const playerId: number;
declare const playerPed: number;
declare const currentVehicle: number;
declare const lastVehicle: number;
declare const sleep: (ms: number) => Promise<void>;
declare const waitUntil: (predicate: () => boolean, max?: number) => Promise<boolean>;
```

client specific helper functions/props
```ts
declare const serverId: number;
declare const requestModel: (model: string | number) => Promise<void>;
declare const requestAnimDict: (dict: string) => Promise<void>;
```

0 comments on commit 7708c3c

Please sign in to comment.