Garry's Mod

Garry's Mod

Playable Piano
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!
Senast ändrad av IAMWEASEL!; 6 sep, 2014 @ 17:44
< >
Visar 1-4 av 4 kommentarer
U.F.O. 15 dec, 2014 @ 10:25 
you know how restricting to proper level in ULX?
Ursprungligen skrivet av U.F.O.:
you know how restricting to proper level in ULX?
Hostia si es UFO que casualidad!
Siegesfriedler 22 okt, 2016 @ 15:23 
How can i find out Coordinates?
little blorby 3 feb, 2017 @ 11:36 
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.
< >
Visar 1-4 av 4 kommentarer
Per sida: 1530 50