Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
fortification-config] addons/fortification-config/lua/sh_fort_config.lua:8: attempt to perform arithmetic on global '“models' (a nil value)
1. unknown - addons/fortification-config/lua/sh_fort_config.lua:8
I was trying to add a new fortification, but nothing happens. The Bridges don't show up, and then I changed "JoeFort.configoverride = false" to "JoeFort.configoverride = true" that had to disable original structures, but it hadn't helped
Here's my file
D:\Steam\steamapps\common\GarrysMod\garrysmod\addons\engineers\lua\sh_fort_config.lua
And here is my file
-- Change to true to disable the default structures
JoeFort.configoverride = true
-- Determines the standard size of the Ressource Pool
JoeFort.Ressources = 250
to do so paste this function and fill in the values for every structure you want to add
JoeFort:AddEnt("Bridge","Fence",{
classname = “”, -- in case its an entity fill in, for props just leave “”
model = “models/karkar/bridge.mdl”, -- enter the model name here, this is never the same as the classname
health = 1000, -- determines the health, 0 means invincible
buildtime = 10, -- determines how long it takes to build
neededresources = 10, -- determines how many ressources will be taken away
})
JoeFort:AddEnt("Bridge part","Fence",{
classname = “”, -- in case its an entity fill in, for props just leave “”
model = “models/askari/bridge01_stlve.mdl”, -- enter the model name here, this is never the same as the classname
health = 1000, -- determines the health, 0 means invincible
buildtime = 10, -- determines how long it takes to build
neededresources = 10, -- determines how many ressources will be taken away
})