1. Hello,

    I'm Krazi. I am trying to learn the Oxide API for making server plugins, I have a local server to just test them on. I run my 'lua program' and it literaly has nothing in it BUT this:

    Code:
    PLUGIN.Title = "test"
    PLUGIN.Description = "test"
    PLUGIN.Author = "Krazi"
    PLUGIN.Version = "1.0.0"print(PLUGIN.Title .. " (" .. PLUGIN.Version .. ") plugin loaded")
    And when I save it or load my server it says that it is missing the version, clearly the version is stated in PLUGIN.Version, as I said I am new and am sorry for this question. It's probably extremely easy. I have searching the internet but people aren't as dumb as I...

    So I decided to ask it here.
     
  2. Wulf

    Wulf Community Admin

  3. Oh I see!

    Do you mind explaining to me what ResourceId is and what 0, 1, 0 means in V()?

    Sorry again... lol

    :3
     
  4. Wulf

    Wulf Community Admin

    0, 1, 0 is the version. I means 0.1.0, it's just in a different format.

    The ResourceId is for use with plugin's like this one: http://oxidemod.org/resources/updater.681/.
     
  5. Ohhhh, so the V(0,1,0) is basically saying it's version is 1.0 or 2.0 I see now.

    And I see what the Resource is used for now.

    Thanks a lot!

    EDIT: Also I can't use PLUGIN.Version probably because it's not a string or something..
     
  6. Wulf

    Wulf Community Admin

    It's like saying 0.1.0, not 1.0. 1.0.0 would be like saying 1.0.
     
  7. Yea I ran it and saw it printed.

    I have this in it:
    Code:
    PLUGIN.Title = "test"
    PLUGIN.Version = V(0, 1, 0)
    PLUGIN.Description = "Description"
    PLUGIN.Author = "Krazi"function PLUGIN:Init()
        print("test Loaded!")
    end
    
    So yea it automatically prints the information itself.
    That's really cool!

    Thanks for the help!