add thread in object

test-utf-8
rubin 2 years ago
parent 607a1572dc
commit 5640e5f10d
  1. 6
      TruckHUD.lua

@ -2244,7 +2244,7 @@ function loadEvents()
antiflood = os.clock() * 1000
end
function sampev.onVehicleStreamIn(vehicleId, data)
lua_thread.create(luChecker.vehicleStream, true, vehicleId, data)
threads[#threads+1] = lua_thread.create(luChecker.vehicleStream, true, vehicleId, data)
if inifiles ~= nil and not inifiles.Settings.Tuning and (data.type == 403 or data.type == 515) then
data.modSlots[8] = 0
return {vehicleId, data}
@ -2724,7 +2724,7 @@ function loadEvents()
end
function sampev.onCreate3DText(id, color, position, distance, testLOS, attachedPlayerId, attachedVehicleId, text) -- f3d1
lua_thread.create(
threads[#threads+1] = lua_thread.create(
function(id, color, position, distance, testLOS, attachedPlayerId, attachedVehicleId, textt)
for k, v in pairs(find_3dText) do
@ -2816,7 +2816,7 @@ function loadEvents()
end
function sampev.onRemove3DTextLabel(Cid) -- f3d2
lua_thread.create(function(Cid)
threads[#threads+1] = lua_thread.create(function(Cid)
if id_3D_text == Cid then
id_3D_text = msk_timestamp
load_location = false

Loading…
Cancel
Save