TmpMenu/docs/lua/tables/entities.md

38 lines
670 B
Markdown

# Table: entities
Table for manipulating GTA entities.
## Functions (3)
### `get_all_vehicles_as_handles()`
- **Returns:**
- `table<int, int>`: Returns all vehicles as script handles
**Example Usage:**
```lua
table<int, int> = entities.get_all_vehicles_as_handles()
```
### `get_all_peds_as_handles()`
- **Returns:**
- `table<int, int>`: Returns all peds as script handles
**Example Usage:**
```lua
table<int, int> = entities.get_all_peds_as_handles()
```
### `get_all_objects_as_handles()`
- **Returns:**
- `table<int, int>`: Returns all objects as script handles
**Example Usage:**
```lua
table<int, int> = entities.get_all_objects_as_handles()
```