# Пользовательские дополнения

На главную

## auction.Bid( id, price )

Попытаться сделать ставку на аукционе.

Результат - EVENT_AUCTION_BID_RESULT.

    -- библиотека
    auction

    -- объявление
    function auction.Bid( id, price )

    -- параметры
    id: ObjectId - id аукциона
    price: number - ставка

    -- возвращаемые значения
    нет

    -- пример
    local state = auction.GetAuctionState( id )
    if state then
      if not state.bidInProgress then
        auction.Bid( id, 1000 )
      end
    end

#### Search: "CategoryLuaApi" "CategoryAuction"

EnumAuctionBidResultMsgResult
EnumAuctionCreateResultMsg
EnumAuctionCreationTime
EnumAuctionDescriptorParticipationStatus
EnumAuctionDiscardResultMsgResult
EnumAuctionGetParamsResultMsgStatus
EnumAuctionGetResultMsgResult
EnumAuctionOrderField
EnumAuctionSearchResultMsgResult
EventAuctionBidResult
EventAuctionCreationResult
EventAuctionDiscardResult
EventAuctionProperties
EventAuctionSearchResult
EventAuctionUpdateResult
FunctionAuctionBid
FunctionAuctionBuyout
FunctionAuctionCanCreateForItem
FunctionAuctionCreateForItem
FunctionAuctionDiscard
FunctionAuctionGetAuctionInfo
FunctionAuctionGetAuctions
FunctionAuctionGetAuctionsCount
FunctionAuctionGetAuctionsPage
FunctionAuctionGetAuctionsPageCount
FunctionAuctionGetAuctionState
FunctionAuctionGetItemForegroundLevel
FunctionAuctionGetProperties
FunctionAuctionIsCreationInProgress
FunctionAuctionIsSearchInProgress
FunctionAuctionIsSearchNameValid
FunctionAuctionSearch

CategoryLuaApi CategoryFunction CategoryAuction

На главную