Results 1 to 3 of 3
  1. #1
    pasquam076's Avatar
    Join Date
    Dec 2011
    Gender
    male
    Posts
    63
    Reputation
    10
    Thanks
    30

    Post How To Find An Entitys ID

    Im trying to get this command working,
    Code:
    RunConsoleCommand("darkrp","splitshipment",v.Entity:EntIndex())
    It says that you need to find the specific entity's Id to make this command work. How the hell would I find the entity's ID?

  2. #2
    suchisgood's Avatar
    Join Date
    Feb 2014
    Gender
    female
    Posts
    902
    Reputation
    10
    Thanks
    562
    My Mood
    Angelic
    Code:
    lua_run_cl print(LocalPlayer():GetEyeTrace().Entity:EntIndex())

  3. #3
    TroubleMakers's Avatar
    Join Date
    Feb 2014
    Gender
    male
    Posts
    65
    Reputation
    10
    Thanks
    27
    My Mood
    Bashful
    Quote Originally Posted by pasquam076 View Post
    Im trying to get this command working,
    Code:
    RunConsoleCommand("darkrp","splitshipment",v.Entity:EntIndex())
    It says that you need to find the specific entity's Id to make this command work. How the hell would I find the entity's ID?
    v:EntIndex() instread of v.Entity:EntIndex()

    also, how about you use the registry?

    debug.getregistry().Entity.EntIndex(v)

    otherwise make a basic module to return the index entity:
    pEntity->index (while pEntity is a pointer to the entity, you might need to cast it to C_BaseEntity)

Similar Threads

  1. How can I find custom entities in a server/map?
    By PyroGodz in forum Garry's Mod Discussions & Help
    Replies: 12
    Last Post: 05-04-2013, 11:17 AM
  2. [Solved] How to find ISINGAME,CG,REFDEF,CLIENTINFO,ENTITY and VIEWANGLES address ?
    By Thealexzava in forum Call of Duty Modern Warfare 3 Coding, Programming & Source Code
    Replies: 4
    Last Post: 03-21-2013, 09:13 PM
  3. How to find GPS address?
    By scooby107 in forum WarRock - International Hacks
    Replies: 21
    Last Post: 04-16-2007, 03:25 PM
  4. [Tutorial]How to find some Hacks
    By mental81 in forum WarRock - International Hacks
    Replies: 22
    Last Post: 04-06-2007, 10:50 AM
  5. how to find rar pw?
    By tekmo in forum General
    Replies: 1
    Last Post: 10-23-2006, 10:08 AM