From 902f41239d5945c9f41ff574cbcc5a34bd3f5848 Mon Sep 17 00:00:00 2001 From: NullBite Date: Sat, 1 Jul 2023 01:11:08 -0400 Subject: [PATCH] avoid hardcoding model name --- script.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/script.lua b/script.lua index d74086f..7658bc0 100644 --- a/script.lua +++ b/script.lua @@ -2,7 +2,8 @@ -- TODO rewrite variables: armor_model, model --- Initial definitions --- -- player model backwards compatibility -model=models.player_model +MODEL_NAME="player_model" +model=models[MODEL_NAME] ping=pings -- Texture dimensions -- TEXTURE_WIDTH = 256