so i am contributing to lua rollercoasters by adding a launch segment type of track that can keep a train of carts still until a key is pressed which sends the train forward at sometimes high speeds. it works fine, but i’m having trouble with the DBinder vgui element. i can’t use panel:AddControl() because it will always place the binder at the top of everything. so instead i need to use vgui.Create() to make the dbinder control. when i do that, i can see it, but i don’t know a function that i can use with it in order to change the keybind (like dbutton’s OnDown function). any help?
You must set a console variable for it and retrieve the convar on server. DBinder will automatically set a proper key to that convar.