Nainstalovat Steam
přihlásit se
|
jazyk
简体中文 (Zjednodušená čínština)
繁體中文 (Tradiční čínština)
日本語 (Japonština)
한국어 (Korejština)
ไทย (Thajština)
български (Bulharština)
Dansk (Dánština)
Deutsch (Němčina)
English (Angličtina)
Español-España (Evropská španělština)
Español-Latinoamérica (Latin. španělština)
Ελληνικά (Řečtina)
Français (Francouzština)
Italiano (Italština)
Bahasa Indonesia (Indonéština)
Magyar (Maďarština)
Nederlands (Nizozemština)
Norsk (Norština)
Polski (Polština)
Português (Evropská portugalština)
Português-Brasil (Brazilská portugalština)
Română (Rumunština)
Русский (Ruština)
Suomi (Finština)
Svenska (Švédština)
Türkçe (Turečtina)
Tiếng Việt (Vietnamština)
Українська (Ukrajinština)
Nahlásit problém s překladem








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
})