Looking for a person to learn me some Lua Scripting


#1

Hello guys!

Im in need for some help from u guys, i understand the basics when im looking at a script.
But i am in need for some more tutoring more in debt for what to do, how to build up, where to start when building a script

i hope i can find someone that are willing to help me learn some lua, point me in the right directions and things like that :slight_smile:


#2

Well you don’t really need a tutor for it. You can always ask help on the forums or discord.

Some steps how to start:
Understand the basics of the language you choose.
Get an editor: Notepad++,…
Follow this guide: [How-To] Create a basic script
Read the Doc’s
Become best friends with this: https://runtime.fivem.net/doc/reference.html
And look in scripts, try to understand them.

The only way to learn scripting in FiveM is by practising.


#3

my biggest issue is where to start, when writing my own script :stuck_out_tongue:


#4

If you read the [How-To] & docs you will be able to. And you can find tons of ideas when scrolling through the native list.


#5

okey, thank u so much :slight_smile:


#6

My suggestion would be to think of something simple. Something you want you to make that isn’t going to require more than 200 lines of code. If you start with something huge that you know is possible, but is also complicated. You will burn yourself out.

If I were to think of something right off the top of my head. Create a basic text command, ya know if you type ‘/me MessageGoesHere’ and it returns that message a different color or something. Then you know how to do basic commands.

A couple things I suggest you do.

  1. Pick a Code Editors, if you already code then you already have one. I like Sublime Text 3. You could also use Visual Studio, Atom, Notepad++, and a bunch of others. There’s a huge abundance.

  2. I don’t know if this is the most updated one. But you definitely want the native snippets. [Release] FiveM Natives - Snippets/Completions for Sublime Text, VS Code, Atom, & Notepad++

  3. Like @Yadiiiig said. References - Hugely Important to have these. I’ll add a couple.
    https://docs.fivem.net/
    http://www.dev-c.com/nativedb/
    https://runtime.fivem.net/doc/reference.html#_n_CFX
    https://paste.ubuntu.com/24355443/ – List of Weapons
    https://alexguirre.github.io/animations-list/ – List of Animations

  4. Learning to structure the script is a pretty big deal. Again, @Yadiiiig covered this pretty well for you.
    [How-To] Create a basic script. I’m going to add to it. https://www.lua.org/ is also a great place to learn the language.

So when he said,

The only way to learn scripting in FiveM is by practising.

That’s not entirely true. That may be true for learning natives and the basic ways that we structure scripts on FiveM. But that link I gave you to https://www.lua.org/ will teach you the basics of the language. You can also use C# or Javascript to do client and server sided coding. Lua is definitely the easiest to learn. It won’t happen in a week but after a month or two you’ll probably have it down.


#7

thanku for ur answer!
i understand that i need to start low, and walk my way up to the top;D
my goal is to build a buisness script :stuck_out_tongue:
but i understand that will take along time, and knowlegde to do :stuck_out_tongue:


#8

Don’t be scared to ask questions. Ask thought out questions and you will receive thought out answers. Give snippets of your code, what you’re trying to accomplish, and what you’ve tried and the community will offer good advice.


#9

thats what i hope :slight_smile:
I love the support i have gotten so far, Motivation booster on all of u guys :smiley: