-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: update readme to include predefined functions/props
- Loading branch information
Showing
1 changed file
with
19 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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>; | ||
``` |