ezzzyxs

Members
  • Content Count

    6
  • Joined

  • Last visited

Community Reputation

0 Neutral

About ezzzyxs

  • Rank
    Vic

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Did not help. Clicked to transfer, the button does not work and does not display the message "Insufficient Funds" Button "Send" does not work
  2. Sorry for the clumsy English Help is needed. I wrote a script to transfer money. The visual part works, but the amount does not transfer. Help, where is the error? Client: addEvent("UI.click", false) addEventHandler("UI.click", resourceRoot, function (widget) if widget == ui.playersList then local items = exports.UI:getItems(ui.playersList) local selectedItem = exports.UI:getActiveItem(ui.playersList) Panel.showPlayerInfo(items[selectedItem].player) elseif widget == ui.CanelButton then Panel.hide() elseif widget == ui.SendButton then local reason = UI:getText(ui.reasonInput) if client:getData("money") < reason then exports.UI:showMessageBox("Error", "Недостаточно средств") else triggerServerEvent("SendMoney", localPlayer, selectedPlayer, reason) Panel.hide() end end end) Server: addEvent("SendMoney",true) addEventHandler("SendMoney", localPlayer, function(selectedPlayer, reason) if not isElement(selectedPlayer) then return false end if type(reason) ~= "number" then return false end if client:getData("money") < reason then return end if not exports.Core:givePlayerMoney(client, -reason) then return false end if isElement(selectedPlayer) then exports.Core:givePlayerMoney(selectedPlayer, reason) end end)
  3. Доброго времени суток, нужна помощь. Как добавить сюда ACL группу, чтобы при нажатии, допустим, на other было "Доступно только для ..." Если нужен полный код, скину function Grid:init() local screenSize = Vector2(exports.UI:getScreenSize()) self.renderTarget = exports.UI:getRenderTarget() self.width = 1000 self.height = 500 self.x = screenSize.x / 2 - self.width / 2 self.y = screenSize.y / 2 - self.height / 2 self.panel = TuningPanel({ {icon = Assets.textures.section_1, text = exports.MultiLang:getString("figures")}, {icon = Assets.textures.section_2, text = exports.MultiLang:getString("vector")}, {icon = Assets.textures.section_3, text = exports.MultiLang:getString("other")}, }) self.y = self.y + self.panel.height / 2 self.panel.x = self.x self.panel.y = self.y - self.panel.height self.panel.textBackgroundAlpha = 140 self.panel.backgroundAlpha = 255 self.stickersList = {} self.itemsHigh = 3 self.itemSize = self.height / self.itemsHigh self.itemsWide = math.floor(self.width / self.itemSize) self.gridRenderTarget = dxCreateRenderTarget(self.width, self.height, true) self.gridScrollOffset = 0 self.gridTargetScroll = 0 self.gridScrollY = 0 self.selectionX = 1 self.selectionY = 1 self.isGridActive = false self.panel.highlightSelection = not self.isGridActive self.stickerItemScale = 0.6 self.itemTextHeight = 40 self.font = Assets.fonts.GridText self.scrollBarWidth = 6 self.scrollBarHeight = 0 self.scrollBarVisible = true self.activeSection = 1 self:changeSection(1) end
  4. ezzzyxs

    Multi Language

    What the dgs? And how can I make a choice of language in freeroam using the example code?
  5. ezzzyxs

    Multi Language

    Good day and sorry for my english. Suppose, I want to be able to choose a language if Freeroam. For example: I choose English and all the buttons are in English. I choose another language, the become another. How to do it? Tell me or show, please
  6. Парни, помогите, проблема. Спавню авто через freeroam, стою, езжу и через промежуток времени он просто пропадает, искал может где таймер стоит, нету Что делать?