Jump to content

Alpha

Members
  • Posts

    244
  • Joined

  • Last visited

Everything posted by Alpha

  1. Keep your thoughts to yourself, don't spam.
  2. No offence what so ever, mine has more work, color picker, creating turfs ingame with resizing/moving, rank management. Again I'm not offending or saying that Castillo's resource is bad. Too bad I won't be able to release it, as I'm involved with some server.
  3. using root will affect every element, but not elements created after the function was used, such as a new player connection, he won't have the element data.
  4. Alpha

    police help

    Maybe this will help: function findRotation(startPosX, startPosY, endPosX, endPosY) return 360 - (math.deg(math.atan2(endPosX - startPosX, endPosY - startPosY)) % 360) end
  5. I'm making an advanced gangs system, with creating gangs, turfing, creating turfs ingame, set color with a colorpicker and more.. I need the idea of how the turfing system will work. Like how can a gang claim ownership of a non owned turf. If the turf is owned, how can they fight for it? I mean the way it works. I can script it, I just need the idea. I'm not sure about releasing this, I'm still thinking whether to release it or sell it.
  6. Alpha

    Find edit

    It's so messy. Where is function click? And you commented guiGridListAddRow function. function onUpdateMoneyplayersList() playerName = getPlayerName ( getLocalPlayer() ) playerList = guiCreateGridList(17,59,166,327,false,WinSend) guiGridListSetSelectionMode(playerList,2) -- Create a players column in the list local column = guiGridListAddColumn( playerList, "Player", 0.85 ) if ( column ) then for id, playeritem in ipairs(getElementsByType("player")) do local row = guiGridListAddRow ( playerList ) guiGridListSetItemText ( playerList, row, column, getPlayerName ( playeritem ), false, false ) end addEventHandler ( "onClientGUIClick", playerList, click ) end if ( source == bhsh ) then guiGridListClear ( playerList ); local sName = guiGetText ( source ); if ( sName ~= "" ) then for _, pPlayer in ipairs ( getElementsByType 'player' ) do if string.find ( getPlayerName ( pPlayer ):lower ( ), sName:lower ( ), 1, true ) then local row = guiGridListAddRow ( playerlist ); guiGridListSetItemText ( playerlist, row, column, getPlayerName ( pPlayer ), false, false ); end end end end end addEventHandler ( "onClientResourceStart", getRootElement(), onUpdateMoneyplayersList) addEventHandler("onClientPlayerJoin", getRootElement(), onUpdateMoneyplayersList) addEventHandler("onClientPlayerQuit", getRootElement(), onUpdateMoneyplayersList) addEventHandler("onClientPlayerChangeNick", getRootElement(), onUpdateMoneyplayersList) addEventHandler("onClientGUIChanged", getRootElement(), onUpdateMoneyplayersList)
  7. Oh my god, are you high? Check the first post, look at both images, what's the difference? A new checkbox appeared "Use customized GTA:SA files". GUI skins changes how the GUI looks, but doesn't add new checkboxes.
  8. He's talking about the new checkbox "Use customized GTA:SA files".
  9. I don't think it's a GUI thing. Compare your version with his.
  10. It's locked, it's not yet open for public. Only beta tests currently.
  11. http://bugs.mtasa.com/view.php?id=6928
  12. Maybe this will help: function getPositionInfrontOfElement(element, meters) if not element or not isElement(element) then return false end if not meters then meters = 3 end local posX, posY, posZ = getElementPosition(element) local _, _, rotation = getElementRotation(element) posX = posX - math.sin(math.rad(rotation)) * meters posY = posY + math.cos(math.rad(rotation)) * meters return posX, posY, posZ end
  13. This isn't released, so..
  14. You have a mix of server sided functions and client sided functions. Server: addEventHandler("onPlayerLogin",root, function(_, account) local accountName = getAccountName(account) if isObjectInACLGroup("user." .. accountName, aclGetGroup("VIP")) then triggerEvent("isVIP", source) else triggerEvent("notVIP", source) end end )
  15. Your code: function toggleFRWindow() if getElementData(loaclPlayer,"muteF1") then return end if isWindowOpen(wndMain) then showCursor(false) hideAllWindows() colorPicker.closeSelect() else showCursor(true) showAllWindows() end end loaclPlayer, wrong spelling.
  16. function toggleFRWindow() if getElementData(localPlayer,"muteF1") then return end if isWindowOpen(wndMain) then showCursor(false) hideAllWindows() colorPicker.closeSelect() else showCursor(true) showAllWindows() end end
  17. Alpha

    Creating GUIs

    I've been working with GUIs for many minutes, I pretty much know nothing about coordinates. Anyway, I will be using guieditor, seems to be the easier. Thanks anyway.
  18. Alpha

    Creating GUIs

    Okay, I've tried that way, using a paper with lines. Gave it my resolution, made a GUI and obtained coordinates by dividing the resolution on the lines. That's how you do it? But it would take alot of time to make a simple GUI.
  19. Alpha

    Creating GUIs

    Let's say you used a paper to draw the GUI, what about the coordinates?
  20. Alpha

    Skin

    engineRestoreModel
  21. Alpha

    Creating GUIs

    How? With just scripting? Can you explain?
  22. Alpha

    Creating GUIs

    Sorry if this is the wrong section, but I thought that this is more of a discussion than help topic. I think that creating a GUI could be really challenging without guieditor or QtToLua, I don't think that anyone creates GUI with a different way. guieditor is amazing, offers a lot of features that makes creating a GUI easy. However it's outdated, ComboBox is not supported. Qt To Lua is also nice, creating GUI outside MTA is cool. However I think there are some bug and well it's kinda hard if you don't know how to use Qt Designer. Currently I'm using guieditor, creating edits to get x,y then manually making it combobox. What do you think? How are you creating your GUI? Any recommendations?
×
×
  • Create New...