Get coordinates of all props

Hello guys.
I’m looking for a way to get all coordinates of a props, for example:
Where are every prop_vend_soda_01 on the map?

Someone knows any way to get it?

You can load the ymap inside codewalker and get the coordinates of one thing inside then manage to get coordinates you want with vMenu.

1 Like

GetGamePool for CObject will get every object currently loaded into the world.

Heres an example:

	for _, obj in ipairs(GetGamePool('CObject')) do
	if DoesEntityExist(obj) and GetEntityModel(obj) == GetHashKey("prop_vend_soda_01") then
        -- Do whatever to the object
	end
	end

EDIT: My bad, didnt realize this post is two years old, saw it in the latest posts, poor guy never got his answer :frowning:

3 Likes

thanks