-
Notifications
You must be signed in to change notification settings - Fork 0
Writing your first script
Jack edited this page Oct 14, 2021
·
2 revisions
First off you want to make a new folder in res/scripts/
and call it your script's name,
Make a new file in that folder, call it index.py
.
Nice! Now you that have an empty script, you can start with a simple print.
print("Hello World!")
Now, when you get a message the script won't work/start, that's because we haven't added it to the config yet.
So let's do that, Go into your config.jsonc
file, and add your script like this:
"scripts": {
// false means its disabled, if it's true, then it's enabled
"script_not_by_me": false, // don't forget to add the comma at the previous script whenever u put a new script name here
"my_epic_script": true
}
If your script doesn't work/start, make sure that
a. The value is true
b. You have saved both files
c. You have gotten a message.