-
Notifications
You must be signed in to change notification settings - Fork 6
Pools
Grinch_ edited this page Mar 25, 2022
·
4 revisions
PyLoader makes it really easy to access the currently spawned building, object, ped, script & veh. For that, we have the pool
module.
#PoolExample.py
import libstd.common as common
import libstd.opcodes as opcodes
import libstd.pool as pool
import libstd.cleo as cleo
while True:
if cleo.test_cheat("vehs"):
for handle in pool.veh():
coord = opcodes.get_car_coordinates(handle)
print("Veh handle: {} Coords: {}, {}, {}".format(handle, coord[0],coord[1],coord[2]))
common.wait(0)