• Help me start off
    23 replies, posted
Hi im relatively new-ish to the scene. Im 15 and I have many years to come. I would like to receive not help but some guidance. If someone can show me to start on my first script, AN easy one. It would be nice and i would greatly appreciate it please, remember you you first started, give me something so I can. Thank You! Sincerely, Dubuda
First of all - you're going to need a bit of coding knowledge of LUA so I would suggest following some LUA tutorials. Tutorialpoint is a good start and will give you a basis - Lua Tutorial . Next of all, if you're wanting to start creating scripts for GMOD I would start to understand how GLUA works - a good place to start is the GMOD WIKI and possibly learning how GLUA scripts work. I would suggest watching Omni Ed's videos as he's quite descriptive and can show you visually how the code works and how it works in-game - https://www.youtube.com/watch?v=cHBWem6FxtI. Good luck!
Yes I have watched many tutorials I just want to know where to start as I have watched Jacktutorials, checked out the wiki and watched code blue bothe Lua and glua. Just need some easy script to start
Well, if you followed their entity tutorials, that is you getting started on your first script! It all now depends on you coming up with ideas in your head or people suggesting ideas for you!
can i get a small simple or intermediate suggestion that would take less then 12 hours to complete
I'm sure someone will hop on this thread and give you an idea! I can't think of a good one off the top of my head - but you could try doing something simple like creating printers for DarkRP e.g 3 different tier printers that print different amounts of money per tier?
FIRST of all: dont expect to learn a programming language in 12 hours...if you want to learn it in half a day, forget it. It will take some days to understand the base, and months to understand lots more things. Im doing lua for months and still learn stuff everytime. But you can star twatching this, was very helpfull to me at the start: https://www.youtube.com/watch?v=RoERwONu8rc&list=PLyQg3m0a5UitP1lHptwWc_4N2ZkRQBfrZ
I will study up on this and come up with a finished product.
Then i dont understand what youre asking for...oh wait, like a idea what addon to make?
I've been developing for Garry's Mod for years and am still learning and getting a new grasp on things :P That being said, a good way to learn how different things work in Garry's Mod is making both a cheat and an anti-cheat. Obviously don't use your cheat to cheat, that's mean.
YES SIRREE
uuh..pretty much anything you want? XD something you think could be usefull for gmod players.
I see what you are implying and if you know what your doing is it possible if i could ask you questions along my way.
yes you could ask me questions. you could even add me on discord. Also: stuff like..idk, a hud, scoreboard, a weapon...car..
Yes, you can ask me questions :P Add me on Discord: VeXan#6969
dubuda ( SEAN )#6244 - add me
Same goes to me. with the discord. if you want
yes siree the more guidance the better
cantguessmyname#3140 i will remove the name once yo uadded me. dont reeally want lots of people seeing my discord..
My first Lua script made it so a cannon noise played at a player's position when they died! (Like in Hunger Games) It takes about 3 lines of code to do this. Another thing you could do is make a chair throwing gun. You press M1 and it fires a chair where you're aiming! I've been programming for 12 years and I actually help VeXan with his coding from time-to-time. If you need any pointers my Discord is Zeaga#5406
Create a simple health bar and ammo counter There's multiple different ways to draw boxes and lines on screen. surface.DrawRect , draw.RoundedBox, etc. You can call them on GM/HUDPaint, GM/PreDrawHUD, or GM/PostDrawHUD. Use the example code here: GM/HUDShouldDraw to remove the default HL2 HUD. after your HUD is done, try to make the HUD elements move slightly when the player looks left/right. You can do this by taking the x,y positions of your HUD items and changing their position with the players EyeAngles. math.Approach to make the HUD move to a desired position (normal position + 10 or something) EyeAngles or EyeVector to get the players viewangles math.Clamp so the HUD doesn't fly off screen when looking around. Check the player's EyeAngles, if the EyeAngles change, use math.Approach to move the HUD, and math.Clamp to set a max for how far the HUD items should move. Good luck!
Hey, I'm 15 too. Started Lua when I was around 12. Just get used to the language. What I did was take some scripts, and change them around a tiny bit to learn the language. Then once you reach a good point, start making stuff from the ground up. Lua is probably the easiest language to learn so you found a good language to start with.
If you're planning on branching out to other languages and fields in the future, don't start with Lua, but with c++. Unless you enjoy the adoption of lazy habits.
Lua takes time and skill. I learned from Code Blues tutorials, and still suggest if your starting off to watch them. Their simple to follow and well explained. But keep in mind, you don't learn lua overnight.
Sorry, you need to Log In to post a reply to this thread.