Idk if im doing something wrong but i need help in case i have the swep scripted but i dont think if its correct i can show it if u want
dude, there are endless tutorials on how to make a swep, all you gotta do is search.
You should be coming in here showing exactly what you're doing, and what you need help with.
Not coming here hoping people will baby you and hold your hand.
Yes, when you get unbanned please show us what you made so far (And please include the file path where you placed them in and any error that comes on the console, if there are any)
Also if you're not making a weapon weapon (Like a normal pistol or smg) try to explain what you're trying to make, then we will give you functions to use, fix your code, some basic file managing here and there but that's it, there are already many SWEP tutorials around, atleast give one of them a shot.
here is what i made EDIT:im trying to make a swep pack
Directory:C:\Program Files (x86)\Steam\steamapps\common\GarrysMod\garrysmod\lua\G1AR
AddCSLuaFile ("shared.lua")
SWEP.Author = "Glatseon"
SWEP.Contact = "eybreygs@gmail.com"
SWEP.Purpose = "An Assault Rifle That Shoots"
SWEP.Instructions = "Lmb To Shoot"
SWEP.Category = "Glatseon's Weaponry"
SWEP.Spawnable = true
SWEP.AdminSpawnable = true
SWEP.Viewmodel = models/weapons/v_IRifle.mdl
SWEP.WorldModel = models/weapons/w_IRifle.mdl
SWEP.Primary.ClipSize = 30
SWEP.Primary.DefaultClip = 30
SWEP.Primary.Automatic = true
SWEP.Primary.Ammo = "AR2"
local ShootSound = Sound("Metal.SawbladeStick")
I didn't look too deep into what you posted by something caught my eye immediately. Your SWEP.Viewmodel and SWEP.WorldModel are incorrect. First of all - model paths should be wrapped in quotes, not models/weapons/v_IRifle.mdl, but "models/weapons/v_IRifle.mdl", the same with WorldModel. Viewmodel is also spelled wrong, it should be in ProperCase - ViewModel. Also, just a little tip, if your SWEP.Spawnable is set to true, you don't need to explicitly specify that it's also SWEP.AdminSpawnable, this is only needed if Spawnable is set to false and you want to make it admin-only
AdminSpawnable is deprecated: replace it with AdminOnly.
It Won't Appear in The Weapons Tab
Also I think you need to put it inside of the lua/weapons directory.
you mean the folder or only the lua file if lua only should i rename it to weapon_G1AR or G1AR
Depends what you want the classname to be. I would recommend weapon_g1ar for consistency.
oh sorry for asking again but i have a model made in swep constructor so how to apply it on my swep
Refer to this guide.
well sadly it looks like a pistol but not a rifle (i didn't use swep constructor kit yet) and has a secondary fire i dont know what to do
Post the full code. Nobody is likely to have a "ready swep to be coded" or a straight forward tutorial.