Categories > Coding > C++ >
getsenv() implementation
Posted
I'm looking for a getsenv implementation.
Replied
@Dudemega143 If you don't understand his maybe you shouldn't be doing this. Not saying I understand it but if you want to do something you should have the basic knowledge of it cough vough lua c
Cancel
Post
Why are you here
Replied
ay bro i know this is old but this is how u do it
getgenv().getsenv = function(instance)
for _, v in next, getreg() do
if type(v) == "function" then
if getfenv(v).script == instance then
return getfenv(v)
end
end
end
end
Cancel
Post
Users viewing this thread:
( Members: 0, Guests: 1, Total: 1 )
Cancel
Post