Code:lua_run_cl print(LocalPlayer():GetEyeTrace().Entity:EntIndex())
Im trying to get this command working,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?Code:RunConsoleCommand("darkrp","splitshipment",v.Entity:EntIndex())
Code:lua_run_cl print(LocalPlayer():GetEyeTrace().Entity:EntIndex())
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)