VE Lua Documentation

Press F to search!

onPlayersChanged

Definition


-- @/lua/vehicle/protocols.lua:263

local function onPlayersChanged(anyPlayerSeated)
  if not playerInfo.firstPlayerSeated then return end
  smoothersReset()
end

Callers

@/lua/vehicle/main.lua

  bdebug.onPlayersChanged(playerInfo.anyPlayerSeated)
  protocols.onPlayersChanged()
  bdebug.onPlayersChanged(playerInfo.anyPlayerSeated)
  protocols.onPlayersChanged()
  ai.stateChanged()
@/lua/vehicle/bdebugImpl.lua

local function onPlayersChanged(m)
  if m then
@/lua/vehicle/extensions/simpleTripApp.lua

local function onPlayersChanged(anyPlayerSeated)
  if not anyPlayerSeated or not shouldExtensionLoad() then