• Models and addons
    9 replies, posted
Hey, what may be wrong when players see models and playable piano as errors? Here is my resource.lua: if (SERVER) then [CODE]if (SERVER) then resource.AddFile( "altair.mdl" ) resource.AddFile( "aphaztech.mdl" ) resource.AddFile( "azuisleet1.mdl" ) resource.AddFile( "blockdude.mdl" ) resource.AddFile( "bobafett.mdl" ) resource.AddFile( "chewbacca.mdl" ) resource.AddFile( "chris.mdl" ) resource.AddFile( "clopsy.mdl" ) resource.AddFile( "dancedancehlgirl.mdl" ) resource.AddFile( "dishonored_assassin1.mdl" ) resource.AddFile( "dude.mdl" ) resource.AddFile( "faith.mdl" ) resource.AddFile( "foohysaurusrex.mdl" ) resource.AddFile( "gmen.mdl" ) resource.AddFile( "gmt_shared.mdl" ) resource.AddFile( "gordon.mdl" ) resource.AddFile( "haroldlott.mdl" ) resource.AddFile( "harry_potter.mdl" ) resource.AddFile( "hunter.mdl" ) resource.AddFile( "ironman.mdl" ) resource.AddFile( "jack_sparrow.mdl" ) resource.AddFile( "jawa.mdl" ) resource.AddFile( "joker.mdl" ) resource.AddFile( "knight.mdl" ) resource.AddFile( "leon.mdl" ) resource.AddFile( "macdguy.mdl" ) resource.AddFile( "mart.mdl" ) resource.AddFile( "masseffect.mdl" ) resource.AddFile( "masterdick.mdl" ) resource.AddFile( "mcsteve.mdl" ) resource.AddFile( "midna.mdl" ) resource.AddFile( "niko.mdl" ) resource.AddFile( "normal.mdl" ) resource.AddFile( "nuggets.mdl" ) resource.AddFile( "rayman.mdl" ) resource.AddFile( "raz.mdl" ) resource.AddFile( "robber.mdl" ) resource.AddFile( "robot.mdl" ) resource.AddFile( "roman.mdl" ) resource.AddFile( "rorschach.mdl" ) resource.AddFile( "sam.mdl" ) resource.AddFile( "samusz.mdl" ) resource.AddFile( "scarecrow.mdl" ) resource.AddFile( "scorpion.mdl" ) resource.AddFile( "security_suit.mdl" ) resource.AddFile( "shaun.mdl" ) resource.AddFile( "skeleton.mdl" ) resource.AddFile( "smith.mdl" ) resource.AddFile( "solid_snake.mdl" ) resource.AddFile( "spacesuit.mdl" ) resource.AddFile( "stormtrooper.mdl" ) resource.AddFile( "subzero.mdl" ) resource.AddFile( "suluigi_galaxy.mdl" ) resource.AddFile( "sumario_galaxy.mdl" ) resource.AddFile( "sunabouzu.mdl" ) resource.AddFile( "teslapower.mdl" ) resource.AddFile( "yoshi.mdl" ) resource.AddFile( "zelda.mdl" ) resource.AddFile( "zerop.mdl" ) resource.AddFile( "zoey.mdl" ) resource.AddFile( "metal_gear_rising/gray_fox.mdl" ) resource.AddFile( "halo2/elite.mdl" ) resource.AddFile( "drpyspy/spy.mdl" ) resource.AddFile( "arms/halo2/elite.mdl" ) resource.AddFile( "elite.mdl" ) resource.AddFile( "spy.mdl" ) resource.AddFile( "elite.mdl" ) resource.AddFile( "gray_fox.mdl" ) end[/CODE] and here is workshop.lua: [CODE]resource.AddFile("104548572") resource.AddFile("118824086") resource.AddFile("119060917") resource.AddFile("220336312") resource.AddFile("150404359") resource.AddFile("171935748") [/CODE]
Probably the fact that you should've put FULL path to the models in the first code an used resource.AddWorkshop in the second.
[QUOTE=Robotboy655;45025174]Probably the fact that you should've put FULL path to the models in the first code an used resource.AddWorkshop in the second.[/QUOTE] Okay... [editline]7th June 2014[/editline] is garrysmod/models/player/MODELHERE.mdl good?
[QUOTE=xNiksu;45025216]is garrysmod/models/player/MODELHERE.mdl good?[/QUOTE] How should I know? Put the actual model paths. If you do not know them, copy paste them from spawnmenu or something.
Thanks! :p But how about the piano?
You aren't downloading the actual pianos files. Plus like robot boy said you're using AddFile with an ID rather than a file path to the model and materials of what I assume is the piano.
Im getting this in console: [url]http://postimg.org/image/fp0y1ehxr/[/url]
[QUOTE=xNiksu;45025768]Im getting this in console: [url]http://postimg.org/image/fp0y1ehxr/[/url][/QUOTE] You are trying to run serverside functions on client. Put your files with resource.Add* into autorun/server/
ehh... so i have to change resource.AddWorkshop to resource.Add and put my workshop.lua to autorun/server/ ?
Make a file in lua/autorun/server called workshop.lua and put this in: [CODE] resource.AddWorkshop("104548572") resource.AddWorkshop("118824086") resource.AddWorkshop("119060917") resource.AddWorkshop("220336312") resource.AddWorkshop("150404359") resource.AddWorkshop("171935748") [/CODE]
Sorry, you need to Log In to post a reply to this thread.