Update functions.lua

This commit is contained in:
Jim Shield
2024-02-08 21:54:28 +00:00
committed by GitHub
parent 46e3f18edc
commit b291e3f4b6

View File

@@ -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
end