Garry's Mod

Garry's Mod

Playable Piano
IAMWEASEL! 6. sep. 2014 kl. 17:43
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!
Sidst redigeret af IAMWEASEL!; 6. sep. 2014 kl. 17:44
< >
Viser 1-4 af 4 kommentarer
U.F.O. 15. dec. 2014 kl. 10:25 
you know how restricting to proper level in ULX?
Oprindeligt skrevet af U.F.O.:
you know how restricting to proper level in ULX?
Hostia si es UFO que casualidad!
Siegesfriedler 22. okt. 2016 kl. 15:23 
How can i find out Coordinates?
little blorby 3. feb. 2017 kl. 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.
< >
Viser 1-4 af 4 kommentarer
Per side: 1530 50