Categories > Coding > C++ >

getsenv() implementation

Posts: 2

Threads: 1

Joined: Jan, 2022

Reputation: 0

Posted

I'm looking for a getsenv implementation.

  • 1

Added

@_realnickk Can you say that in plain English?

  • 0

Posts: 707

Threads: 55

Joined: Feb, 2021

Reputation: 32

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

  • 0

Why are you here

Posts: 80

Threads: 13

Joined: Oct, 2018

Reputation: -6

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
  • 0

Users viewing this thread:

( Members: 0, Guests: 1, Total: 1 )