TmpMenu/docs/lua/tables/entities.md

670 B

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:

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:

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:

table<int, int> = entities.get_all_objects_as_handles()