No video

FiveM Scripting 1 - Create Your First FiveM Resource (Lua for beginners)

  Рет қаралды 577,151

Jeva

Jeva

Күн бұрын

Code: github.com/jev...
Code Editors:
code.visualstu...
www.sublimetex...
Resource Manifest:
resource_manifest_version "44febabe-d386-4d18-afbe-5e627f4af937"
Zua explains how to create and get started in FiveM Modding/Scripting (Lua) by creating a simple help command.
Need help? Join the discord - / discord
Subscribe for more!
Twitter: / jevajs
GitHub: github.com/jevajs
Discord: / discord

Пікірлер: 344
@Pavalon1337
@Pavalon1337 5 жыл бұрын
Looks like the event trigger "chatMessage" is now depreceated and they want us to use chat.addMessage instead. Just as a test i changed to use the new event trigger. -- Help command -- Register new command /help RegisterCommand("help", function() -- when /help i used the following msg will be printed to client msg("Enter your text here") end, false) --Function with the new event trigger function msg(text) -- Triggering new event chat:addMessage instead of depreceated "chatMessage" TriggerEvent("chat:addMessage", { -- Color of the msg printer color = {255,0,0}, -- Allowed to use more than 1 line? true/false multiline = true, -- arguments = {author, otherargs...} args = {"[Server]", text} }) end
@dogge358
@dogge358 5 жыл бұрын
still not working for me
@2sdead787
@2sdead787 5 жыл бұрын
@@dogge358 same here
@cemeteryz4486
@cemeteryz4486 5 жыл бұрын
@@2sdead787 same here
@Jevajs
@Jevajs 5 жыл бұрын
To clarify, Its 'chat:addMessage' not 'chat.addMessage'
@eladcraft5302
@eladcraft5302 5 жыл бұрын
still not working for me
@evilterabyte
@evilterabyte 4 жыл бұрын
Just letting you know your keyboard is extremely satisfying
@freshtechtips
@freshtechtips 4 жыл бұрын
This is mechanical keyboard But i dont know what type ir
@STE41k
@STE41k 2 жыл бұрын
The sounds of your typing. Giving me flashbacks to Fallout 3/4 console hacking. Love it.
@moz9055
@moz9055 3 жыл бұрын
Bro u r the best teacher easy to understand
@EdgarGarcia-kt7bv
@EdgarGarcia-kt7bv 5 жыл бұрын
Perfect music to a video of this kind! Congrats for your tutorials, you explain them so well! I've learnt a lot with your help x)
@CristyFN
@CristyFN 2 жыл бұрын
Thank you man i got my first fivem script working because of you !
@thequietstep2161
@thequietstep2161 2 жыл бұрын
when i start my server it says that help is not found even that i ensured it in the server.cfg
@MrKmav
@MrKmav 5 жыл бұрын
sir your video show me the way. m hosting fivem so long just collect sample from other to my server but u show me the way. #respect your sharing n your work. sorry my bad english
@jackehshsh2885
@jackehshsh2885 3 жыл бұрын
Vasvaggvsvv
@2_Active
@2_Active 3 жыл бұрын
It’s does not trigger the message in my server /help doesn’t work I did everything what he said ? Hope someone answers cause this is like 2 years ago lol
@vidkovac177
@vidkovac177 3 жыл бұрын
had the same problem and just realised i had to save the files in visual studio
@backwheelben257
@backwheelben257 4 жыл бұрын
good videos mate, but telling us the keybinds within lua would help a lot!
@pickdownchannel7774
@pickdownchannel7774 5 жыл бұрын
You a legend man!
@BrogramFilmss
@BrogramFilmss 5 жыл бұрын
oh hell yeah im gonna subscribe, great video looking forward to more tutorials
@francescopioferro474
@francescopioferro474 3 жыл бұрын
shuff gooooo
@slowbrotbone
@slowbrotbone 5 жыл бұрын
it so "no such command help" can someone tell me whats up with that
@harishankar5212
@harishankar5212 3 жыл бұрын
If u system shows could not find the resources then, guys instead of _resource.lua make it as __resource.lua it works use underscore two times before resource..thank u guys
@0xMA
@0xMA 5 жыл бұрын
You're just amazing.
@senaajitraghu
@senaajitraghu 3 жыл бұрын
Hey man really appreciate ur tutorials but hopefully you can make an updated version sometime soon?
@wolf-ol8gt
@wolf-ol8gt 4 жыл бұрын
why don't I have the resources.cfg file? pls help me
@itspopyy6880
@itspopyy6880 4 жыл бұрын
I have no idea whats going on but i like it
@coronette4708
@coronette4708 5 жыл бұрын
Cool tutorial, very efficent.
@youngslol
@youngslol 5 жыл бұрын
I love u, you are the light
@miladzamir150
@miladzamir150 5 жыл бұрын
tnx bro you are lifesaver keep doing
@herrzorander5310
@herrzorander5310 4 жыл бұрын
I like this muuuusik aww
@xazed2137
@xazed2137 10 ай бұрын
so if i follow these tutorials will i have a basic understanding on how to make specific fivem tasks for people to use in the server they play? been wanting to get into learning this type of work wondering if this series will help me with that. im talking i would like to create tasks that give people locations on maps interactions with objects and npcs and rewards based on server settings?
@augustecloet6911
@augustecloet6911 3 жыл бұрын
goeie video learned a lot thank you!
@brandon32
@brandon32 5 жыл бұрын
Pretty good tutorial. Looking to jump into GTA modding for the fun of it. Just a suggestion to turn down the background music just a little bit. Its almost as loud as you are which makes it hard to follow what you're doing. Other than that, pretty good!
@hessez
@hessez 4 жыл бұрын
it finds a new resource "help" but does not start it.. help me
@andincefee1304
@andincefee1304 3 жыл бұрын
love the music
@mickresistor4373
@mickresistor4373 5 жыл бұрын
Just a request, in the future if you haven't already can you either lower the music volume or increase your voice volume? It's hard to make out what you're saying for people like me who have poor hearing. Otherwise great video and I thank you for it.
@Jevajs
@Jevajs 5 жыл бұрын
Sorry about that, im personally horrible at audio mixing. Definitely will work on it in the future videos
@KrizKhaoz
@KrizKhaoz 5 жыл бұрын
Would be great if you went into depth with MYSQL and how to import data into MYSQL from Lua, as well as delete modify alter update ect..
@Jevajs
@Jevajs 5 жыл бұрын
Yes, after we teach server events we plan on making mysql videos too for lua
@scorpio2t
@scorpio2t 2 жыл бұрын
Awesome! Trying to learn project zomboid modding 😂 did the cs50 and got my 40% quarkeys z40 and ready to get out of physical work and move to digital realm 🤓
@skittleez.
@skittleez. 2 жыл бұрын
Yo brother what can i code for project zombiod? u mean a own server or what are u coding?
@scorpio2t
@scorpio2t 2 жыл бұрын
@@skittleez. make some mods for the game! I was thinking to solve in-game wants of mine and that way I could code up problem solving solutions. In the back of my mind I figured I could use all sorts of things as a portfolio for jobs… I couldn’t ever think of any projects or ways to get into coding. Now I’m a graphic technician 🦾🥸
@skittleez.
@skittleez. 2 жыл бұрын
@@scorpio2t okay didnt know that you could make ur own mods for that game! sounds amazing and awesome can imagine it isnt easy tho haha
@foxtutorials1027
@foxtutorials1027 3 жыл бұрын
Thanks king
@christerjohanzzon
@christerjohanzzon 4 жыл бұрын
@Jeva Nice videos! I am wondering about the IDE, how would one go about testing scripts while developing them? Is there a way without having the the game running? Like when developing hud-related things... do you have a recommendation for a dev-setup for FiveM?
@cryptoclyph22
@cryptoclyph22 2 жыл бұрын
Wonder the same
@JustinTwilley
@JustinTwilley 4 жыл бұрын
Hey man I cant seem to get it to work, when i type /help it just shows up in chat as /help, can any one help me? Thanks for the great tutorial im sure its my error im a noob.
@meshal6878
@meshal6878 4 жыл бұрын
same
@abubakrjajja
@abubakrjajja 4 жыл бұрын
1:22 Zua: Make sure you have 'file name extension' ON. It makes your life easier. . Life Problem : Am I a joke to you ???????
@Mike-bj8sk
@Mike-bj8sk 5 жыл бұрын
Great video thanks a lot.
@moody3359
@moody3359 4 жыл бұрын
so i get it all working and the server loads but nothing pops up when i type /help in chat
@snaj1
@snaj1 4 жыл бұрын
This is Easy in Arab Servers
@moody3359
@moody3359 4 жыл бұрын
@@snaj1 Nice for Arab servers...
@moody3359
@moody3359 4 жыл бұрын
However, I fully made my own server and i'm fully bored of that project. still easily get over 20+ playing on my server and i dont even work on it anymore LOL. Onwards, Next thing, Next challenge.
@kv.6274
@kv.6274 4 жыл бұрын
@@moody3359 what did u do to get the /help to work? i got the same issue
@poisonouspurple
@poisonouspurple 5 жыл бұрын
Nice Work thx m8 :D
@RAGEMODIFICATIONS
@RAGEMODIFICATIONS 5 жыл бұрын
alright so its possible that im special, but why does nothing happen if i try to create a second function, i just did the exact same thing as the first one, but names it "cad" and it doesnt work, am i missing something
@monster2nd795
@monster2nd795 5 жыл бұрын
when i startet the server it said help failed
@auryx8039
@auryx8039 4 жыл бұрын
Monster2nd be more specific
@davidperezcontreras7408
@davidperezcontreras7408 3 жыл бұрын
I like lua now
@oakwoodballcap7570
@oakwoodballcap7570 2 жыл бұрын
The city of dope RP....... fivem
@goalke4998
@goalke4998 3 жыл бұрын
i do everything but i cant found /help in the chat !!!!!!!!!
@jadenhidalgo8621
@jadenhidalgo8621 Жыл бұрын
made my own commands im a future coder
@Sheldinator
@Sheldinator 4 жыл бұрын
hi i have an issue were when i go to my server's dealership and press e it does not show me my list and i get stuck in the camera angle without being able to move. can you PLEASE help me as no one wants to help me. thank you
@gamingEP
@gamingEP 5 жыл бұрын
doesn't works for me :/ I also tried to copy your code (from GitHub).
@Jevajs
@Jevajs 5 жыл бұрын
Join our discord for more help
@rapidsubzer0914
@rapidsubzer0914 5 жыл бұрын
@@Jevajs same it wont work for me
@pixelagony3313
@pixelagony3313 5 жыл бұрын
I just started recently and your videos are a real good help! But I am wondering, if i'd want the 2nd line to NOT have the "[SERVER]" tag in front, what would the code look like? (in the "help-c.lua")
@YoloMonstaaa
@YoloMonstaaa 5 жыл бұрын
replace "server" with "" (2 double quotes)
@pixelagony3313
@pixelagony3313 5 жыл бұрын
@@YoloMonstaaa But then the 1st line would lose the SERVER tag
@YoloMonstaaa
@YoloMonstaaa 5 жыл бұрын
@@pixelagony3313 isn't that what you wanted?
@pixelagony3313
@pixelagony3313 5 жыл бұрын
First, thanks for the support everyone, it is really appreciated. After the "Scripting 2" video, I can browse my buddy's custom server's resources, and start to understand whats happening in the lua scripts! Dope! You're helping me learn way faster than I would have expected!
@loganf1206
@loganf1206 4 жыл бұрын
i did everything and the help command didnt show, help please
@matei2164
@matei2164 4 жыл бұрын
same
@washing_machine_yt8126
@washing_machine_yt8126 4 жыл бұрын
same
@Lehend
@Lehend 3 жыл бұрын
wtf.... no autocomplete ? can a fivem library be added to the ide?
@GetLikeExoticcccc
@GetLikeExoticcccc 2 жыл бұрын
thx verry much bro
@BurglarBars
@BurglarBars 5 жыл бұрын
Thanks for the awesome videos, how did you add the Fivem/Gta 5 sdk/framework to the intelisense of visual studio code?
@TomAndersonfom
@TomAndersonfom 3 жыл бұрын
"Could not start dependency webpack for resource chat" "Couldn't start resource chat" help?
@iilegendl4332
@iilegendl4332 3 жыл бұрын
Looks like the event trigger "chatMessage" is now depreceated and they want us to use chat.addMessage instead. Just as a test i changed to use the new event trigger.
@namehere5547
@namehere5547 4 жыл бұрын
how do you make a comment on code
@severinschmid7714
@severinschmid7714 4 жыл бұрын
simple type "#" before you write someting :)
@electric0
@electric0 4 жыл бұрын
Hello, first congratulations for your videos really nice ! question, i start now on this world, this is on ESX ? Many thanks
@imkamikazi7386
@imkamikazi7386 3 жыл бұрын
This is stand-alone what means that it does not require any framework
@nutbangsai
@nutbangsai 3 жыл бұрын
How to fix waiting for scripts?
@JustinTwilley
@JustinTwilley 4 жыл бұрын
How do you get that short discord link? Thanks for the great tutorial btw!
@lulli6707
@lulli6707 3 жыл бұрын
thx
@tugaluzo7937
@tugaluzo7937 3 ай бұрын
thanks for tutorial ! and if i use notepad++ to do my fivem server does it work too like visual code studio ?
@bannanachef1091
@bannanachef1091 5 жыл бұрын
when i open it its says sorry couldnt load help what do i do please help someone
@bannanachef1091
@bannanachef1091 5 жыл бұрын
Found the problem
@eguthaboss
@eguthaboss 5 жыл бұрын
@@bannanachef1091 What was the problem
@eguthaboss
@eguthaboss 5 жыл бұрын
I think is that im trying to entry in my server from another pc so i dont have this folder in secundary pc so i cannot conect. How can i fix it?
@Deniz-ty6mk
@Deniz-ty6mk 4 жыл бұрын
couldnt load resource :) ??
@vellj3168
@vellj3168 Жыл бұрын
Can you post the video on step 1? Like where to even find the files you have currently ?
@Mudcatlive
@Mudcatlive Жыл бұрын
mannn lol
@TiktokIsLife
@TiktokIsLife 4 жыл бұрын
How did you put a hashtag in this time 6:33
@code3response524
@code3response524 6 ай бұрын
I followed this video letter for letter and it says "could not open resource metadata file", whats the problem?
@nathancoulson9874
@nathancoulson9874 4 жыл бұрын
cannot get command to work, i realise the depreceated "chatMessage" as mentioned by Pavalon1337. but cannot seem to translate how he has worded it into coding, a screen cap would be really helpful
@aidenwatts1805
@aidenwatts1805 4 жыл бұрын
I have followed step by step and it loads in command prompt but then when i am in FiveM and loading my server it says that "Connection failed! Couldn't load resource help. :( @Jave Please help me.
@jacksonsmith5809
@jacksonsmith5809 4 жыл бұрын
Pavalon1337 11 hónapja (szerkesztve) Looks like the event trigger "chatMessage" is now depreceated and they want us to use chat.addMessage instead. Just as a test i changed to use the new event trigger. -- Help command -- Register new command /help RegisterCommand("help", function() -- when /help i used the following msg will be printed to client msg("Enter your text here") end, false) --Function with the new event trigger function msg(text) -- Triggering new event chat:addMessage instead of depreceated "chatMessage" TriggerEvent("chat:addMessage", { -- Color of the msg printer color = {255,0,0}, -- Allowed to use more than 1 line? true/false multiline = true, -- arguments = {author, otherargs...} args = {"[Server]", text} }) end
@surviver5738
@surviver5738 4 жыл бұрын
What is the reasoning behind that string of numbers? You did not explain it.
@Christopher-xc3hr
@Christopher-xc3hr 4 жыл бұрын
so why do we have to put a end, false) for Registering Commands. I understand why we put end but why do we put false)
@jakeyan2531
@jakeyan2531 4 жыл бұрын
Where is the video that has the information to create the separate cfg file for the resources | at 6:20 in the video????
@onlyGACO
@onlyGACO 5 жыл бұрын
couldn't load , jeva can help?
@TheCopNextDoor
@TheCopNextDoor 3 жыл бұрын
Just to help I just went back threw the code on mine and I forgot to add text on line 5 for the messages parameters
@d4rks0ul97
@d4rks0ul97 4 жыл бұрын
couldnt load resource help :(
@Deniz-ty6mk
@Deniz-ty6mk 4 жыл бұрын
on me too
@XPROSKATERZ15
@XPROSKATERZ15 4 жыл бұрын
@@Deniz-ty6mk theres a video about what you did wrong on the channel. aka "couldnt load resource" Im pretty sure :)
@GaadaZmam
@GaadaZmam 11 ай бұрын
Why the music bro! Can't hear nothing at 1.5 speed
@DeadLight__
@DeadLight__ 5 жыл бұрын
when i try going in the server it just takes me to a nother game
@Jevajs
@Jevajs 5 жыл бұрын
What?
@serbanratiu9879
@serbanratiu9879 4 жыл бұрын
Jeva could you please make a tutorial from zero with lua.Because i dont undertand the commands like triigerevent and register command
@CallMe_Oso
@CallMe_Oso 3 жыл бұрын
So im following every step but i dont get any command
@aaronsolano2659
@aaronsolano2659 4 жыл бұрын
Hi, I could make a video that you put a command in the chat and an image appears on the screen, for example if you want to create a police alert that in the chat you put / alert and an image of an alert appears on the screen. Thank
@koka_real
@koka_real 3 жыл бұрын
why does it say "please inject first before using lua script"
@Alanzott
@Alanzott 5 жыл бұрын
A quick question, when I use my xbox contoller on fivem it never use to bring up tge phone when I use the “A”, now it does. So the phones get in my way when I try to sprint. Any idea on changing the keys? Thanks.
@LouisShay
@LouisShay 4 жыл бұрын
Alanzo change the keybinding in the Scripts config
@themasterofdeadoralive
@themasterofdeadoralive 5 жыл бұрын
why is my numbers and letters not colored
@SuperKitteycat
@SuperKitteycat 4 жыл бұрын
I have a question. I have a local host server(can't afford a rented host server yet.) when I type in the /help command. It doesn't pop up anything for me? What am I doing wrong?
@AlanMG001
@AlanMG001 3 жыл бұрын
why when im trying to start reosource it says couldnt find resource but in config i writted the resource name
@Foxy74
@Foxy74 2 жыл бұрын
How can i make a menu when i clic on one that can trigger other scripts that trigger with a comand ?
@chiquita4619
@chiquita4619 3 жыл бұрын
Can’t you have it to send the message automatically, because I don’t think no body is going to typ or use that command
@TwinCitysSportsNetworkTCSN
@TwinCitysSportsNetworkTCSN 5 жыл бұрын
I was able to create my server. but I want to be able to add cars, police cars, tow trucks and everything else how can I do that. I also couldn't open my port forwarding port I have never had that issue before so I will look into that more on my own
@P_double_H
@P_double_H 4 жыл бұрын
Is there a nice tutorial to be able to script resources files in Microsoft's C Sharp (C#)?
@eNTiTyDark
@eNTiTyDark 4 жыл бұрын
I had an error in my command and I cant /help as it wont let me
@MihaiPert
@MihaiPert 4 жыл бұрын
How do I connect with another friend in localhost, I mean port forwarding?
@UnboundGodz
@UnboundGodz 5 жыл бұрын
Would it be better to learn Lua or continue learning C# for script development for FiveM servers?
@Jevajs
@Jevajs 5 жыл бұрын
Lua is alot easier if you have no expirience in coding, but if you have object oriented programming expirience, go ahead
@knight4007
@knight4007 4 жыл бұрын
ok So when i try to restart it it says Can't restart a stopped Resource... Why is it stopped?
@eneskarlsson7552
@eneskarlsson7552 2 жыл бұрын
It says Resouce loading for help faild
@goberoon
@goberoon 4 жыл бұрын
it says it found the resource but I can't see it starting and by the way when I close the server should I just close the window or should I write something?
@tor3875
@tor3875 5 жыл бұрын
kinda confusing i did it step by step and i had no clue, the text colours on c++ were different and i just got lost, nothing worked too confusing
@Jevajs
@Jevajs 5 жыл бұрын
I would recommend to get familiar with the scripting language of lua, then maybe try to follow the video again?
@TiktokIsLife
@TiktokIsLife 4 жыл бұрын
help gusy my script not working
@bas-s3467
@bas-s3467 4 жыл бұрын
Hey, I have installed Visual studio..... However, it does not show the logo on the new text file?
@markusplayz5045
@markusplayz5045 3 жыл бұрын
Hey, I wanted to ask a couple of things: 1: do you have to have a text called resources.cfg or can i just put the help command in my scripts folder 2: when i made the texts resource.lua and help-c.lua and i tried opening them the wouldnt open so i dont know what i gotta do to fix that 3: do you think you can explain or make a video on how to make chat commands like /me,/do,/gme,/id and ect.
@markusplayz5045
@markusplayz5045 3 жыл бұрын
Also to add to that every time i wanna make a new script do i need to make a new __resource.lua or can can i use the same one?
@navebasi5788
@navebasi5788 3 жыл бұрын
its says "Couldn't find resource help."
@rhinogaming4955
@rhinogaming4955 5 жыл бұрын
Hey, Jeva when I start up my server in cmd it launches fine. But when I try loading into it doesn't let me join with the error message "couldn't load resource help"
@Jevajs
@Jevajs 5 жыл бұрын
Watch our video in that exact error!
@Mitchs
@Mitchs 5 жыл бұрын
music + keyboard sounds... geez
@yxngchris3710
@yxngchris3710 2 жыл бұрын
I really am confused how to play fiveM and I jus need some help getting going
@LL-jw6oz
@LL-jw6oz 3 жыл бұрын
i type it and nothing happens
FiveM Scripting 7 - Server Events and Chat Arguments
10:21
Making a Game in Lua with No Experience
5:52
Goodgis
Рет қаралды 295 М.
I'm Excited To see If Kelly Can Meet This Challenge!
00:16
Mini Katana
Рет қаралды 35 МЛН
Алексей Щербаков разнес ВДВшников
00:47
Ik Heb Aardbeien Gemaakt Van Kip🍓🐔😋
00:41
Cool Tool SHORTS Netherlands
Рет қаралды 7 МЛН
If Barbie came to life! 💝
00:37
Meow-some! Reacts
Рет қаралды 66 МЛН
Why I switched from VSCode to Zed.
6:07
Flo Woelki
Рет қаралды 19 М.
Scammed selling my MacBook, almost
15:09
Alex Ziskind
Рет қаралды 41 М.
How to Write a Door Lock Script (FiveM Lua Scripting Master Series)
18:23
7 Amazing CLI Tools You Need To Try
18:10
Josean Martinez
Рет қаралды 307 М.
Learn Reverse Engineering (for hacking games)
7:26
cazz
Рет қаралды 1 МЛН
12 VS Code Extensions to INCREASE Productivity 2024
27:13
Devression
Рет қаралды 650 М.
Tmux has forever changed the way I write code.
13:30
Dreams of Code
Рет қаралды 964 М.
How To Secure and Anonymize Your Online Activity
25:10
Mental Outlaw
Рет қаралды 456 М.
I'm Excited To see If Kelly Can Meet This Challenge!
00:16
Mini Katana
Рет қаралды 35 МЛН