GE Lua Documentation

Press F to search!

onSetClusterPosRelRot

Definition


-- @/lua/ge/main.lua:723

-- Async callback when a vehicle's cluster is teleported
function onSetClusterPosRelRot(vehicleID, cNodeId)
  extensions.hook('onSetClusterPosRelRot', vehicleID, cNodeId)
end

Callers

@/lua/vehicle/main.lua

function onSetClusterPosRelRot(cNodeId, pos, relRot)
  if ghostOnTp ~= nil then
@/lua/ge/extensions/core/vehicles.lua
-- TODO: Trailer respawn code is currently active, uncomment this when it's disabled
-- local function onSetClusterPosRelRot(vehicleID, cNodeId)
--   if M.resetVehCollectionEnabled then