sUp5rET.png

Scripting for beginners

greenops011

Donator
Donator
Hi guys. As we all know, we have some great scripter's in our community. But take one look at the "accepted" suggestions board, and it is clear we could always use more. The goal of this thread is to help spread knowledge. Where did our scripter's start? How did they first get into scripting? Do they know of any good resources for people who want to start to learn how to script, but are unsure of how?
 

DrJoseEvil

MTA:RP Forum Legend
Donator
The true way to learn to script is to fiddle with community scripts to see how they work, then try creating basic things from the examples on the mta wiki
 

GamingBox

[b] Staff? Idk even anymore [/b]
Yeah. I have read some scripts. And yeah that is how you get the BASICS. This far I can understand how a script works and I can tell you from reading it. But cant script anything cuz im a dum dum
 

DrJoseEvil

MTA:RP Forum Legend
Donator
Yeah. I have read some scripts. And yeah that is how you get the BASICS. This far I can understand how a script works and I can tell you from reading it. But cant script anything cuz im a dum dum

Just like the rest of us
 

Luka

MTA:RP Forum Legend
No one is incapable of learning how to script, you're either uninterested or too lazy. I've found my way to scripting few years ago, back in time when Fusionz was scripting. I was admiring his work and it motivated me so hard I started learning how to script by myself. All you need is time and will, everything else is easy to find.

MTA Scripting: https://wiki.multitheftauto.com/wiki/Main_Page
MTA Scripting - Basics: https://wiki.multitheftauto.com/wiki/Scripting_Introduction
Lua in general: https://www.lua.org/start.html
Learning Lua: https://youtu.be/S4eNl1rA1Ns OR https://youtu.be/iMacxZQMPXs
Lua online book: https://www.lua.org/pil/contents.html

If you go through all of these I assure you that you'll be able to script smaller things. However, theory is theory and you only learn a piece from there, going through scripts yourself and making them is the way to go, where you'll learn new ways of coding, tricks, etcetera. Good luck :)
 

CanadianBacon

<strong><b><span style="color:#9E00BD;">$$$<b>
The main reason most people don't script, is because it takes time and effort. It takes a lot of time just to understand it, then you have to worry about actually doing it.
 

Bunny

MTA:RP Forum Legend
Scripting for me was just creating things out of my imagination and learning how to do that using the MTA wiki and reading over functions. I already know how to code in JAVA, PHP and HTML just by certifications I took while I was in high school.

This right here is your best friend..

https://wiki.multitheftauto.com/wiki/Main_Page
 

Mach2

Server Supervisor
Staff member
Server Supervisor
Everyone is told to go look at the Wiki when they ask how to learn scripting, but for me.. that's complete bullshit. Go download Basicrp, the most easy and basic RP script that does not use MySQL. Learn how to set yourself to admin to begin with, then edit color codes, explore the script and if you make a mistake? CTRL + Z does the trick.

Once you are are used to how that works, then use the wiki as a reference, but not an E-Teacher.

This is is how I learned and I hope it helps all of you that are curious.
 

DrJoseEvil

MTA:RP Forum Legend
Donator
Somebody once told me the world is gonna script me
I ain't the sharpest scripter in the shed
She was looking kind of dumb with her LUA and C++
In the shape of an "file" on her harddrive
 

greenops011

Donator
Donator
Everyone is told to go look at the Wiki when they ask how to learn scripting, but for me.. that's complete bullshit. Go download Basicrp, the most easy and basic RP script that does not use MySQL. Learn how to set yourself to admin to begin with, then edit color codes, explore the script and if you make a mistake? CTRL + Z does the trick.

Once you are are used to how that works, then use the wiki as a reference, but not an E-Teacher.

This is is how I learned and I hope it helps all of you that are curious.

is it safe to assume that "Basicrp" is not compiled, (i.e. no code scrambling or encryption). this is a common issue i have found while trying to learn from others scripts. the code is protected so even if I wanted to just look at the code, I can't
 

DrJoseEvil

MTA:RP Forum Legend
Donator
is it safe to assume that "Basicrp" is not compiled, (i.e. no code scrambling or encryption). this is a common issue i have found while trying to learn from others scripts. the code is protected so even if I wanted to just look at the code, I can't

People compile their scripts to prevent people from "stealing" their scripts (even though, it acts a security measure, thats not what it was made for), so people can use them or copy/edit them.
 

Mach2

Server Supervisor
Staff member
Server Supervisor
is it safe to assume that "Basicrp" is not compiled, (i.e. no code scrambling or encryption). this is a common issue i have found while trying to learn from others scripts. the code is protected so even if I wanted to just look at the code, I can't

Correct, basicrp is not compiled.
 
sUp5rET.png
Top