rebel1324 / NutScript

A free role-play framework for Garry's Mod.
http://nutscript.net
MIT License
65 stars 31 forks source link

Unable to assign weapons to a faction or class. #303

Closed arinehart911 closed 4 years ago

arinehart911 commented 5 years ago

Hey there, recently I've been trying to set up some factions and classes to spawn with certain firearms. It doesn't work, however. I've tried using FACTION.weapons and CLASS.weapons to no avail, and I set the ITEM.classes in the weapon file to see if that would work too. That didn't work either. I'm really lost at this point, any help would be appreciated.

NOTE: Players don't spawn with hands or keys either, if that may be something related to it.

SleepyMode commented 4 years ago

@BizLight originally answered the question but I've hidden his comment as it was rather rude.

The correct way to do this is:

FACTION.weapons = {"weapon_1", "weapon_2", "weapon_3"}