Hello I need a help with my entity.

Hello I have a problem with my addon. I will make a connection with variables between one entity and one file in lua autorun.

In the file of autorun I have this.

In the folder of my entity in shared.lua I have this

And in the init.lua I have this.

How I can connect this variable to the lua file in the folder autorun for make a condition?

Thanks.

You could make a ENT:Initialize() function in the shared file, and then refer to it with self.

You don’t need to connect anything, just use :GetTextInt() on whatever the variable is for your entity.

What can I solved? With a function ENT:Initialize() in the init.lua in the folder entity?

And how I can use GetTextInt()?

Please could you leave me an example?

Thanks.