Scripting for beginners

Started by greenops011 · Feb 22, 2017 at 8:36 AM
Donator
Joined
Apr 2015
Messages
159
Likes
0
🎮 442 hrs💰 $352K
Feb 22, 2017 at 8:36 AM#1
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?
MTA:RP Forum Legend
Joined
Jun 2014
Messages
1,600
Likes
5
🎮 5,071 hrs💰 $5.2M
Feb 22, 2017 at 8:40 AM#2
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
benis
[b] Staff? Idk even anymore [/b]
Joined
Feb 2016
Messages
403
Likes
0
Feb 22, 2017 at 9:25 AM#3
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



Spoiler
MTA:RP Forum Legend
Joined
Jun 2014
Messages
1,600
Likes
5
🎮 5,071 hrs💰 $5.2M
Feb 22, 2017 at 9:45 AM#4
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
benis
MTA:RP Forum Legend
Joined
Oct 2012
Messages
2,038
Likes
3
Feb 22, 2017 at 10:11 AM#5
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 :)
Spoiler
The Dinapoli Family
2012-2015


Your weekly report count is: 336

Spoiler

Thanks to DrJoseEvil for this lovely painting.

Spoiler
Spoiler
Spoiler
Spoiler
Spoiler
Spoiler
Spoiler
Spoiler
Spoiler
Spoiler
Spoiler
Spoiler
Spoiler
Spoiler
Spoiler
Spoiler
lol
Spoiler
Turco
Joined
Aug 2016
Messages
100
Likes
0
Feb 22, 2017 at 10:24 AM#6
If anyone here is interested in scripting in general, i'd say start off on easy scale. Here are some fiew good Youtube channel on HTML & C++.

Channel: https://www.youtube.com/channel/UCVqnFFhb07phBdva71Abatg

I can assure you if, you ya'll interested in LUA you have to learn basics first. =)
Last edited Feb 22, 2017
$$$
Joined
Dec 2013
Messages
360
Likes
2
Feb 22, 2017 at 12:57 PM#7
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.
DISCORD
Bilbo#5310

MTA:RP ACCOUNT
matthewsmith171617

SKYPE
Move on. Its been ages.

Well-known member
Joined
Mar 2013
Messages
1,052
Likes
3
Feb 23, 2017 at 12:22 AM#8
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

Server Supervisor
Joined
Aug 2013
Messages
1,502
Likes
17
🎮 3,255 hrs💰 $1.6M
Feb 23, 2017 at 9:45 AM#9
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.
MTA:RP Forum Legend
Joined
Jun 2014
Messages
1,600
Likes
5
🎮 5,071 hrs💰 $5.2M
Feb 23, 2017 at 10:07 AM#10
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
benis
Donator
Joined
Apr 2015
Messages
159
Likes
0
🎮 442 hrs💰 $352K
Feb 23, 2017 at 10:08 AM#11
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
MTA:RP Forum Legend
Joined
Jun 2014
Messages
1,600
Likes
5
🎮 5,071 hrs💰 $5.2M
Feb 23, 2017 at 10:16 AM#12
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.
benis
Server Supervisor
Joined
Aug 2013
Messages
1,502
Likes
17
🎮 3,255 hrs💰 $1.6M
Feb 23, 2017 at 5:37 PM#14
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.
Donator
Joined
Apr 2015
Messages
159
Likes
0
🎮 442 hrs💰 $352K
Feb 24, 2017 at 8:29 AM#15
Correct, basicrp is not compiled.

I've looked everywhere for the basicrp resource, but it seems Socialz deleted it. Do you happen to still have your original, unedited copy?
You must log in or register to reply here.