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:
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...Code:PLUGIN.Title = "test" PLUGIN.Description = "test" PLUGIN.Author = "Krazi" PLUGIN.Version = "1.0.0"print(PLUGIN.Title .. " (" .. PLUGIN.Version .. ") plugin loaded")
So I decided to ask it here.
Solved Uber Simple (New to the Oxide API)
Discussion in 'Rust Development' started by ItsAnderson, Mar 27, 2015.
-
Wulf Community Admin
That is the Legacy format. If you are making a plugin for Experimental, see http://docs.oxidemod.org/?lua#getting-started.
-
Oh I see!
Do you mind explaining to me what ResourceId is and what 0, 1, 0 means in V()?
Sorry again... lol
:3 -
Wulf Community Admin
The ResourceId is for use with plugin's like this one: http://oxidemod.org/resources/updater.681/. -
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.. -
Wulf Community Admin
-
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
That's really cool!
Thanks for the help!