Jump to content

_Marco_

Members
  • Posts

    39
  • Joined

  • Last visited

Posts posted by _Marco_

  1. 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])

     

     

  2. How can I use the following table values?

     

    Items = {
        One = {
            [7] = 1000,
            [13] = 2000,
        },
        Two = {
            [411] = 3000,
            [434] = 4000,
        },
        Three = {
            [1001] = 5000,
        },
        Four = {
            Gate = 6000,
            Base = {
                ["First"] = 100000,
                ["Last"] = 200000,
            },
        },
        Five = {
            ["Vehicle"] = 411,
        },
    }

     

  3. Hi . 

    How To Put All The Commands Inside A Resource In The Database So That None Of Them Are Duplicates 

    Example : 
    Resource Command = /goto . /mechanic . /vehspawn

    Create Column Whit ALTER TABLE

    Give Me Example Code

  4. Hello friends .  How to transfer text to the web via a command.  So that if he enters the command, it will write like a log on the site page

     

     

  5. Hi, I wrote this but it does not work. Where is the problem?

    I want this function to follow a few commands

    function Test()
    outputChatBox("Ok")
     
    end
    addCommandHandler( {"Check""Checkk""checkkk"} )
     
×
×
  • Create New...