1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. GTA Network forum is now in archive mode.

Object picker

Discussion in 'Scripts' started by Eraknelo, Dec 30, 2016.

  1. Eraknelo

    Eraknelo Active Member

    Messages:
    64
    Likes Received:
    61
    Joined:
    Dec 26, 2016
    Simple script that allows you to get the model IDs of objects in the map.

    Usage:
    Aim at an object, like a lightpost/barrier.
    Press F3.
    Either this message will show:
    [​IMG]
    Or this:
    [​IMG]

    If the first, idk how this works, but only some objects will come up on the API.createRaycast method.
    ¯\_(ツ)_/¯

    If the latter, well, there's your model ID!

    Now aim somewhere else, and press F4 to spawn it where you're aiming.

    [​IMG]

    Download/contribute

    Please note, I will make no further enhancements or changes to this. It was pretty much just a test anyways. Contained a few basic things like raycasting and object spawning and client/server events. Thought someone might find it useful.
     
    Last edited: Jun 30, 2017
    shotaxx, Kiase, taywon and 4 others like this.
  2. Adam

    Adam Staff Member Administrator Webmaster Developer

    Messages:
    275
    Likes Received:
    146
    Joined:
    Apr 3, 2016
    You could create a TextLabel over surrounding objects, or create a TextLabel for the aimed at Object.. I see lots of improvements and potential in this.. keep it up.
     
    Jorge Santamaria likes this.
  3. Eraknelo

    Eraknelo Active Member

    Messages:
    64
    Likes Received:
    61
    Joined:
    Dec 26, 2016
    That's a pretty good idea... I'll look into it :=)
     
  4. Kiase

    Kiase Member

    Messages:
    15
    Likes Received:
    1
    Joined:
    Mar 20, 2017
    Nice, tranks!!
     
  5. Spacefrog

    Spacefrog Member

    Messages:
    21
    Likes Received:
    2
    Joined:
    Sep 20, 2016

Share This Page