DaBOSS54320

Bully LUA: Get all peds/vehicles

Aug 27th, 2015
436
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.28 KB | None | 0 0
  1. function PedGetAllPeds()
  2.     local peds = {PedFindInAreaXYZ(0,0,0,999999)}
  3.     table.remove(peds,1)
  4.     return peds
  5. end
  6. function VehicleGetAllVehicles()
  7.     local vehicles = VehicleFindInAreaXYZ(0,0,0,999999)
  8.     if type(vehicles) == "table" then
  9.         return vehicles
  10.     else
  11.         return {}
  12.     end
  13. end
Advertisement
Add Comment
Please, Sign In to add comment