_Marco_ Posted April 29, 2023 Share Posted April 29, 2023 Hello I have created 3 files (config.lua - server.lua - client.lua) But when I call the items of the config.lua file in each file, I encounter an error (a nil value). But when I call the items in the config.lua file, there is no item and it works properly where is the problem from ? meta.xml file: <meta> <script src="client.lua" type="client" cache="false" validate="false"/> <script src="server.lua" type="server" cache="false" validate="false"/> <script src="config.lua" type="shared" cache="false" validate="false"/> </meta> config.lua File : Male = { {1, "Premium", 5000}, {2, "Free", 2000}, } outputChatBox(Male[1][3]) Link to comment
AngelAlpha Posted April 29, 2023 Share Posted April 29, 2023 1 hour ago, _Marco_ said: Hello I have created 3 files (config.lua - server.lua - client.lua) But when I call the items of the config.lua file in each file, I encounter an error (a nil value). But when I call the items in the config.lua file, there is no item and it works properly where is the problem from ? meta.xml file: <meta> <script src="client.lua" type="client" cache="false" validate="false"/> <script src="server.lua" type="server" cache="false" validate="false"/> <script src="config.lua" type="shared" cache="false" validate="false"/> </meta> config.lua File : Male = { {1, "Premium", 5000}, {2, "Free", 2000}, } outputChatBox(Male[1][3]) <meta> <script src="config.lua" type="shared" cache="false" validate="false"/> <script src="client.lua" type="client" cache="false" validate="false"/> <script src="server.lua" type="server" cache="false" validate="false"/> </meta> Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now