Hello,
I have a DListView with rows with an entity class name. Is there a way to set that for the class name's print name (which i don't know how to get from the class, only from the entity), or is there another way around?
Yes, you can do like this:
[CODE]
local weapon = weapons.GetStored( v ); -- v = entity name
print( weapon.PrintName );
[/CODE]
[URL="http://gmodwiki.net/Lua/Libraries/scripted_ents/GetStored"]http://gmodwiki.net/Lua/Libraries/scripted_ents/GetStored[/URL]
Sorry, you need to Log In to post a reply to this thread.