mirror of
https://github.com/Mr-X-GTA/YimMenu.git
synced 2025-01-04 00:23:27 +08:00
29 lines
422 B
Markdown
29 lines
422 B
Markdown
# Class: script_util
|
|
|
|
Class for gta script utils, the instance is usually given to you.
|
|
|
|
## Functions (2)
|
|
|
|
### `yield()`
|
|
|
|
Yield execution.
|
|
|
|
**Example Usage:**
|
|
```lua
|
|
script_util:yield()
|
|
```
|
|
|
|
### `sleep(ms)`
|
|
|
|
Sleep for the given amount of time, time is in milliseconds.
|
|
|
|
- **Parameters:**
|
|
- `ms` (integer): The amount of time in milliseconds that we will sleep for.
|
|
|
|
**Example Usage:**
|
|
```lua
|
|
script_util:sleep(ms)
|
|
```
|
|
|
|
|