From b291e3f4b6881b6fb6b035768d6441020a53679d Mon Sep 17 00:00:00 2001 From: Jim Shield Date: Thu, 8 Feb 2024 21:54:28 +0000 Subject: [PATCH] Update functions.lua --- functions.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/functions.lua b/functions.lua index 0ccd45a..03d56e0 100644 --- a/functions.lua +++ b/functions.lua @@ -229,7 +229,7 @@ function ensureNetToVeh(vehNetID) return vehicle end -local previewTxd = CreateRuntimeTxd(GetCurrentResourceName()..'previewTxd') +local previewTxd = not IsDuplicityVersion() and CreateRuntimeTxd(GetCurrentResourceName()..'previewTxd') or nil function makeBlip(data) local blip = AddBlipForCoord(vec3(data.coords.x, data.coords.y, data.coords.z)) SetBlipAsShortRange(blip, true) @@ -970,4 +970,4 @@ function StopEffects() -- Used to clear up any effects stuck on screen AnimpostfxStop('RaceTurbo') AnimpostfxStop('FocusIn') AnimpostfxStop('Rampage') -end \ No newline at end of file +end