local teamSides = { [3] = "CT", [2] = "T" }
local bit = {
band = function(a, b) return a & b end,
lshift = function(a, b) return a << b end,
rshift = function(a, b) return a >> b end,
bor = function(a, b) return a | b end,
bnot = function(a) return ~a end
}
local model_changer = { aState = ui.get_bool("Esp.enable_agents") }
ui.add_checkbox("Enable model changer")
model_changer.player_models = {
"models/player/custom_player/z-piks.ru/gta_blood.mdl", -- Gta Blood
"models/player/custom_player/z-piks.ru/gta_crip.mdl", -- Gta crip
"models/player/custom_player/legacy/cuddleleader.mdl", -- Cuddle leader Fortnine
"models/player/custom_player/kirby/leetkumla/leetkumla.mdl", -- Leet Kumla
"models/player/custom_player/kirby/kumlafbi/kumlafbi.mdl", -- Kumla FBI
"models/player/custom_player/eminem/css/t_arctic.mdl", -- CSS Arctic [T]
"models/player/custom_player/legacy/ctm_gign.mdl", -- GIGN
"models/player/custom_player/legacy/ctm_gign_variantA.mdl", -- GIGN [A]
"models/player/custom_player/legacy/ctm_gign_variantB.mdl", -- GIGN [B]
"models/player/custom_player/legacy/ctm_gign_variantC.mdl", -- GIGN [C]
"models/player/custom_player/legacy/ctm_gign_variantD.mdl", -- GIGN [D]
"models/player/custom_player/legacy/tm_balkan_varianth.mdl", -- Romanov
"models/player/custom_player/nf/lara/lara.mdl", -- laracroft nude
"models/player/custom_player/kuristaja/hitler/hitler.mdl", -- hitler
"models/player/custom_player/voikanaa/acb/ezio.mdl",
"models/player/custom_player/kaesar2018/thanos/thanos.mdl", --thanos
"models/player/custom_player/kuristaja/putin/putin.mdl", --putin
"models/player/gtav/trevor.mdl", --trevor gtav
"models/player/custom_player/kuristaja/kim_jong_un/kim.mdl",
"models/player/custom_player/owston/rezero/felixtrap3.mdl",
"models/player/custom_player/kuristaja/ash/ash.mdl",
"models/player/custom_player/kolka/yoru_csgo/yoru_csgo.mdl",
"models/player/custom_player/legacy/gxp/valorant_viper/viper_v1.mdl",
"models/player/custom_player/legacy/gxp/valorant/brimstone/brimstone_v1.mdl",
"models/player/custom_player/caleon1/trog/trog.mdl",
"models/player/custom_player/GUC/spet/spet.mdl",
"models/player/custom_player/uroboros/the_reaper/the_reaper.mdl",
"modelsp/layer/custom_player/napas/ricardo/ricardo.mdl",
"models/player/custom_player/kolka/reyna_valorant/reyna_valorant.mdl",
"models/player/custom_player/kolka/Neon/neon_v2.mdl",
"models/player/custom_player/caleon1/leviathan/leviathan.mdl",
"models/player/custom_player/legacy/gxp/kurtcobain/kurtcobain_v1.mdl",
"models/player/custom_player/night_fighter/valorant/killjoy/killjoy.mdl",
"models/player/custom_player/night_fighter/valorant/jett/jett.mdl",
"models/player/custom_player/napas/valorant/phoenix.mdl",
"models/player/custom_player/legacy/gxp/valorant_viper/viper_v1.mdl"
}
ui.add_combobox("Select model [T]", { "Gta Blood", "Gta Crip", "Cuddle Leader", "LeetKumla", "KumlaFBI", "CSS Arctic T", "GIGN", "GIGN Variant A", "GIGN Variant B", "GIGN Variant C", "GIGN Variant D", "Romanov", "Lara Croft", "Hitler","Ezio", "Thanos", "Putin", "Trevor", "Kim Jong Un", "Felix", "Ash", "Yoru", "Viper", "Brimstone", "Trog", "Tachanka", "The Reaper", "Ricardos", "Reyna", "Neon", "Leviathan", "Kurt Cobain", "Kill Joy", "Jett", "Pheonix", "Viper"})
ui.add_combobox("Select model [CT]", { "Gta Blood", "Gta Crip", "Cuddle Leader", "LeetKumla", "KumlaFBI", "CSS Arctic T", "GIGN", "GIGN Variant A", "GIGN Variant B", "GIGN Variant C", "GIGN Variant D", "Romanov", "Lara Croft", "Hitler", "Ezio","Thanos", "Putin", "Trevor", "Kim Jong Un", "Felix", "Ash", "Yoru", "Viper", "Brimstone", "Trog", "Tachanka", "The Reaper", "Ricardos", "Reyna", "Neon", "Leviathan", "Kurt Cobain", "Kill Joy", "Jett", "Pheonix", "Viper"})
model_changer.change_model = function(ent, model)
if model:len() > 5 then
if not g_interfaces.precache.precache_model(model) then
error("invalid model", 2)
end
local ModelIndex = g_interfaces.model_info.get_model_index(model)
if ModelIndex == -1 then
return
end
ent:set_model_index(ModelIndex)
end
end
model_changer.net_update_start = function(Stage)
if Stage ~= 1 then
return
end
if not ui.get_bool("Enable model changer") then
ui.set_bool("Esp.enable_agents", model_changer.aState)
return
end
ui.set_bool("Esp.enable_agents", false)
local Player = entitylist.get_local_player()
if not Player then
return
end
if teamSides[Player:get_team()] == "CT" then
model_changer.change_model(Player, model_changer.player_models[ui.get_int("Select model [CT]") + 1])
end
if teamSides[Player:get_team()] == "T" then
model_changer.change_model(Player, model_changer.player_models[ui.get_int("Select model [T]") + 1])
end
end
cheat.RegisterCallback("on_frame_net", function(Stage)
model_changer.net_update_start(Stage)
end)