Garry's Mod

Garry's Mod

Playable Piano
IAMWEASEL! Sep 6, 2014 @ 5:43pm
How to implent it into your server.
Go to your server -> garrys mod -> lua -> autorun -> server

add a lua file, you can copy the admin_functions.lua file and remove all the code inside.

Rename the admin_functions.lua to whatever name you want, mine is piano.lua.

Open it with notepad ++ and add these lines of code:

function SpawnEntity() local ent = ents.Create("gmt_instrument_piano") ent:SetPos( Vector( -20.000000, -380.070343, -0.500000) ) ent:SetAngles( Angle(0, 0, 0) ) ent:Spawn() ent:SetMoveType(MOVETYPE_NONE) end hook.Add( "InitPostEntity", "SpawnEntity", SpawnEntity)

Now save the .lua and have fun with your playable piano!
Last edited by IAMWEASEL!; Sep 6, 2014 @ 5:44pm
< >
Showing 1-4 of 4 comments
U.F.O. Dec 15, 2014 @ 10:25am 
you know how restricting to proper level in ULX?
Originally posted by U.F.O.:
you know how restricting to proper level in ULX?
Hostia si es UFO que casualidad!
Siegesfriedler Oct 22, 2016 @ 3:23pm 
How can i find out Coordinates?
To get the coordinates go to the location where you want to place the piano, open the console and type GetPos it will print the postition coordinates into the console.
< >
Showing 1-4 of 4 comments
Per page: 1530 50