Helping for getting owner name (ent:GetDoorOwner():Name() - its not trigged in door having error nil).
ent:GetDoorOwner() - this print steam name and (dev. text) and CoOwners (getKeysCoOwners())
((local ent = t.Entity))
This for swep key.
https://files.facepunch.com/forum/upload/107063/2c5882ac-3221-4cd6-8d8f-7912058c4091/image.png
I can for see this
https://files.facepunch.com/forum/upload/107063/a16979be-06c5-4ba8-aaf9-26aaed726532/image.png
what are you asking?
You should show us the error log and the code.
why print owner door? Please see code for normal printing name( not work ent:GetDoorOwner():Name())
If a door doesn't have an owner, you can't get his name.
local OwnerText = IsValid(ent:getDoorOwner()) and ent:getDoorOwner():Name() or ent:getKeysDoorGroup() or "Нет владельца (F2)"
or
local OwnerText = "Нет владельца (F2)"--
if ent:getDoorOwner() then
OwnerText = ent:getDoorOwner():Nick()
elseif ent:getKeysDoorGroup() then
OwnerText = ent:getKeysDoorGroup()
end
Thank you!!!
Sorry, you need to Log In to post a reply to this thread.