Jump to content

Getting all world objects


bradio10

Recommended Posts

Hi,

So I am wanting to get all the world objects and store in a table.

How do I get all of them?

I have tried getElementsByType("object") but that only gets objects that are created by the player or that are mapped (I am using it clientside, but have also tried it serverside and it still doesnt work the way I want it to)

How do I get every single object there is in the world as well as the standard GTA world objects that in the world?

Thanks.

Link to comment

Ahk, thanks for your help.

The reason why I am asking is because I am making a system where players can put there own objects in-game and I am wanting to try and make it so the players can't put items under the ground or inside other world objects.

The way I was going to detect it was getting all the world objects, then having a colshape attached to the players object and when the colshape was inside a world object (which would also mean the object as well), it wouldn't allow the object to be placed.

Unless there is an easier way in doing this?

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...