Skip to content

Instantly share code, notes, and snippets.

@ValentinFunk
Last active September 28, 2015 11:28
Show Gist options
  • Save ValentinFunk/36c87de9feca0bbbee22 to your computer and use it in GitHub Desktop.
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
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