teleportToLastRoad
Definition
-- @/lua/ge/spawn.lua:739
local function teleportToLastRoad(veh, options)
veh = veh or getPlayerVehicle(0)
if not veh then return end
if not options then options = {} end
queueCallbackInVehicle(veh, "spawn.teleportToLastRoadCallback", "recovery.recoveryPoints", options)
end
Callers
@/lua/ge/extensions/gameplay/missions/missionManager.lua
if step.veh:isReady() then
spawn.teleportToLastRoad()
gameplay_walk.getInVehicle(step.veh)
@/lua/ge/extensions/core/quickAccess.lua
onSelect = function()
spawn.teleportToLastRoad(playerVeh, {resetVehicle = false})
return {'hide'}
@/lua/ge/extensions/flowgraph/nodes/vehicle/teleportToLastRoad.lua
if veh then
spawn.teleportToLastRoad(veh, {resetVehicle = self.pinIn.resetVehicle.value, destinationPos = self.pinIn.destinationPos.value})
extensions.hook('onVehicleTeleportedToLastRoad', veh:getID())
@/ui/ui-vue/mockdata/inputBindings.js
"title": "ui.inputActions.gameplay.recover_vehicle_to_last_road.title",
"onDown": "spawn.teleportToLastRoad()",
"order": 4,
@/lua/ge/extensions/core/recoveryPrompt.lua
if veh then
spawn.teleportToLastRoad(veh, {resetVehicle = false})
local invVehId = career_modules_inventory.getInventoryIdFromVehicleId(target.vehId)