Team Spartan Cookies & Milk Forums
Client Side Model Error ... i guess - Printable Version

+- Team Spartan Cookies & Milk Forums (https://teamscm.co.uk)
+-- Forum: Garry's Mod (https://teamscm.co.uk/forum-4.html)
+--- Forum: Starfall (https://teamscm.co.uk/forum-7.html)
+--- Thread: Client Side Model Error ... i guess (/thread-2857.html)



Client Side Model Error ... i guess - 4N0NYM - 26-10-2018

if CLIENT then 

Table = {}
Table[1] = render.createClientModel("models/markjaw/drone_chair/chair_base.mdl",render.RENDERGROUP_OPAQUE)
Table[1]:remove()

print(Table[1])
print(#render.getClientModels())
end

Output >> Clientside Model
Output >> 1

It seems that ClientSideModel:remove() doesnt work.

Any help is appreciated.


RE: Client Side Model Error ... i guess - Red The Blue Color - 26-10-2018

The actual problem here is removing the clientside model doesn't reset render.getClientModelCount(), therefore sooner or later you will hit a limit even though the actual clientside model is being removed.


RE: Client Side Model Error ... i guess - Person8880 - 27-10-2018

The limit should be correctly reduced after the next restart.