ISOFX Posted July 11, 2015 Share Posted July 11, 2015 I have seen some posts on this but i cant seem to figure out whats wrong. I used this: foreach (Entity entity in World.GetAllEntities()) so its 'World.GetAllEntites' but it gives me this error so i know this isnt one to use - 'GTA.World' does not contain a definition for 'GetAllEntities' Can anyone tell me how to get all entites? Thanks Link to comment Share on other sites More sharing options...
leftas Posted July 11, 2015 Share Posted July 11, 2015 Update your reference ? All the best, Paul. Link to comment Share on other sites More sharing options...
ISOFX Posted July 11, 2015 Author Share Posted July 11, 2015 Update your reference ? All the best, Paul. Yep, just done that before you said it thanks though. Can you help me? i have this error - 'GTA.Vehicle.EngineRunning.get': cannot explicitly call operator or accessor & my code for it - if (new Vehicle(entity.Handle).get_EngineRunning()) { position = entity.Position; Point location = UI.WorldToScreen(position); Function.Call(Hash.SET_DRAW_ORIGIN, (InputArgument) position.X, (InputArgument) position.Y, (InputArgument) position.Z, (InputArgument) 0); RedBox.DrawSquare(location, Color.Red); } This draws a red box on a vehicle with an engine running, but i get an error on the line - if (new Vehicle(entity.Handle).get_EngineRunning()) Any help? Thanks Link to comment Share on other sites More sharing options...
leftas Posted July 11, 2015 Share Posted July 11, 2015 What the heck is this mess ? Here if (new Vehicle(entity.Handle).EngineRunning) { position = entity.Position; Point location = UI.WorldToScreen(position); Function.Call(Hash.SET_DRAW_ORIGIN, position.X, position.Y, position.Z, 0); RedBox.DrawSquare(location, Color.Red); } All the best, Paul. Link to comment Share on other sites More sharing options...
ISOFX Posted July 11, 2015 Author Share Posted July 11, 2015 Thanks and thanks for cleaning it up! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now