Garry's Mod

Garry's Mod

[TTT] Rearming Base
5 kommentarer
Spaazington  [ophavsmand] 8. apr. 2023 kl. 19:38 
I'll look into it in the future
dhkatz 8. apr. 2023 kl. 2:28 
Ok it seems that the The Stig's Floor Weapon spawner actually supplemented those missing functions itself so you could probably do that as well
dhkatz 8. apr. 2023 kl. 2:25 
I was able to fix the error by replacing ent:Remove() with SafeRemoveEntityDelayed(ent, 0).

There were also errors involving ents.TTT.GetSpawnableAmmo and ents.TTT.GetSpawnableSWEPs (does not seem to exist in TTT2), but adding isfunction checks and skipping those loops didn't seem to break anything in TTT2, weapons were spawning

Also SpawnWillingPlayers does not exist in TTT2 so adding an isfunction check there too fixed the error
dhkatz 8. apr. 2023 kl. 1:56 
Not sure if TTT2 specific but getting this error:

Lua Error: [[TTT] Rearming Base] lua/autorun/ttt_rearming_base.lua:111: attempt to call method 'Remove' (a nil value) 1. RemoveSpawnEntities - lua/autorun/ttt_rearming_base.lua:111 2. fn - lua/autorun/ttt_rearming_base.lua:219 3. Run - lua/ulib/shared/hook.lua:109 4. unknown - gamemodes/terrortown/gamemode/server/sv_main.lua:1064
dhkatz 8. apr. 2023 kl. 1:45 
Does this work with TTT2?