Last active
September 28, 2015 11:28
-
-
Save ValentinFunk/36c87de9feca0bbbee22 to your computer and use it in GitHub Desktop.
Put this into a new file in lua/autorun/no_model_selection.lua to disable sandbox player selection
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AddCSLuaFile() | |
hook.Add( "InitPostEntity", "RemoveEditor", function( ) | |
list.Set( "DesktopWindows", "PlayerEditor", { | |
title = "Player Model", | |
icon = "icon64/playermodel.png", | |
width = 250, | |
height = 50, | |
onewindow = true, | |
init = function( icon, window ) | |
local lbl = window:Add( "DLabel" ) | |
lbl:Dock( TOP ) | |
lbl:SetContentAlignment( 5 ) | |
lbl:SetText( "To change your model buy it in Pointshop 2!" ) | |
end } ) | |
GAMEMODE.PlayerSetModel = function( ) end | |
end ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment