[QUOTE=Jaastin;24972071]bump, omg..[/QUOTE]
Just a suggestion, bud, but be patient. Some people here are willing to help you, but you have to wait a bit for responses.
You're using "function" which is a reserved named in Lua; in addition, there is no "function" library. You're looking for "resource".
In your script below, you're also calling from G, which isn't necessary, and this too is incorrect, as the global table is _G, not G.
[editline]08:05PM[/editline]
What you're doing shouldn't be done, anyway. You shouldn't be manually sending these files to clients, as their respective addons handle this.
Where are you getting function.AddFile from? The function is called [b][url=http://wiki.garrysmod.com/?title=Resource.AddFile]Resource.AddFile [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]. Other than that, you only have to add one of the model and material files, so:
[lua]resource.AddFile( "models/boxopencigshib.mdl" )
resource.AddFile( "models/boxopenshib.mdl" )
resource.AddFile( "models/closedboxshib.mdl" )
resource.AddFile( "materials/highs/shader3.vmt" )
resource.AddFile( "materials/highs/shader3_dudv.vmt" )
...[/lua]
:/
I usually check other threads and what not. and I just see people doing G.Add, and function, lol, where did that come from, i don't know. :|
I'll try not post spamming, sorry:(
Oh, and also, lol my cars won't download=3
Still.
Bleh, im bad at making threads. I gotta use the sub feature-.-
Get rid off all the .vtx etc.. you only need .mdl (the other stuff will be automatically added).
Alright, i'll try that. See if it works, right now i stuffed that in Wire lol.
That is in Lua/autorun right
I really think you should read a [url=http://wiki.garrysmod.com/?title=Lua_Tutorial_Series]Lua tutorial[/url] before you try to do anything more with Lua