Garry's Mod

Garry's Mod

Garry's Mod Stranded
This topic has been locked
Crypto 8 Jun, 2014 @ 5:25pm
Add more weapons
you dont have to add weapons but could you explain how i could? i went into the combinations.lua and wrote this

local COMBI = {}

COMBI.Name = "Iron_Sword"
COMBI.Description = "This highly advanced, effective melee weapon is useful for hunting down animals and fellow stranded alike."
COMBI.Entity = "gms_ironworkbench"

COMBI.Req = {}
COMBI.Req["Iron"] = 1


COMBI.SkillReq = {}
COMBI.SkillReq["Weapon_Crafting"] = 1
COMBI.SkillReq["Hunting"] = 1

COMBI.Texture = "gms_icons/gms_weapon.png"
COMBI.SwepClass = "weapon_firesword"

GMS.RegisterCombi( COMBI, "gms_ironworkbench" )


SWEP.ViewModel = "models/weapons/v_gaywbar.mdl"
SWEP.WorldModel = "models/weapons/w_gaywbar.mdl"

input:18: attempt to index global 'SWEP' not nil



Does not work WARNING
< >
Showing 1-4 of 4 comments
Rubat  [developer] 9 Jun, 2014 @ 2:07am 
Remove last two lines.
Crypto 9 Jun, 2014 @ 7:31pm 
wait the does not work was not origanlly in there, sorry for confusion.
Crypto 9 Jun, 2014 @ 7:42pm 
[ERROR] gamemodes/gmstraned/gamemode/combinations.lua:1839: attempt global 'SWEP' <a nil value>





(not apart of error)




line 1839 would be this

SWEP.ViewModel = "models/weapons/v_gaywbar.mdl"
Crypto 9 Jun, 2014 @ 7:46pm 
also i tried changing the fridges model with a custom model i had made and got nothing but an error
< >
Showing 1-4 of 4 comments
Per page: 1530 50