Skip to content

Commit 9e79b62

Browse files
Move config vars up
1 parent ca1c4d8 commit 9e79b62

1 file changed

Lines changed: 20 additions & 12 deletions

File tree

newmodels_red/scripts/core/shared_local.lua

Lines changed: 20 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,25 @@
1-
local isClientsideScript = localPlayer ~= nil
1+
-- ....... CONFIGURATION ............................................
2+
3+
-- These default values can be overridden per model.
4+
DEFAULT_AUTO_MODEL_SETTINGS = {
5+
["disableAutoFree"] = false,
6+
["disableTXDTextureFiltering"] = false,
7+
["enableDFFAlphaTransparency"] = false,
8+
}
9+
10+
-- For downloadFile behavior
11+
DOWNLOAD_FILE_MAX_RETRIES = 3
12+
DOWNLOAD_RETRY_WAIT_DELAY_MS = 1000
213

314
-- NandoCrypt file extension
415
local NANDOCRYPT_EXT = ".nandocrypt"
516

17+
-- ..................................................................
18+
19+
-- ....... USEFUL FUNCTIONS .........................................
20+
21+
local isClientsideScript = localPlayer ~= nil
22+
623
function isNandoCryptFileName(fn)
724
if type(fn) == "string" then
825
if fn:sub(- #NANDOCRYPT_EXT) == NANDOCRYPT_EXT then
@@ -32,17 +49,6 @@ customModels = {}
3249
-- Shared element models table:
3350
elementModels = {}
3451

35-
-- These default values can be overridden per model.
36-
DEFAULT_AUTO_MODEL_SETTINGS = {
37-
["disableAutoFree"] = false,
38-
["disableTXDTextureFiltering"] = false,
39-
["enableDFFAlphaTransparency"] = false,
40-
}
41-
42-
-- For downloadFile behavior
43-
DOWNLOAD_FILE_MAX_RETRIES = 3
44-
DOWNLOAD_RETRY_WAIT_DELAY_MS = 1000
45-
4652
function getCustomModels()
4753
return customModels
4854
end
@@ -80,3 +86,5 @@ function setElementCustomModel(element, id)
8086
end
8187
return true
8288
end
89+
90+
-- ..................................................................

0 commit comments

Comments
 (0)