-
Posts
244 -
Joined
-
Last visited
Everything posted by Alpha
-
Keep your thoughts to yourself, don't spam.
-
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.
-
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.
-
Maybe this will help: function findRotation(startPosX, startPosY, endPosX, endPosY) return 360 - (math.deg(math.atan2(endPosX - startPosX, endPosY - startPosY)) % 360) end
-
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.
-
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)
-
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.
-
He's talking about the new checkbox "Use customized GTA:SA files".
-
I don't think it's a GUI thing. Compare your version with his.
-
It's locked, it's not yet open for public. Only beta tests currently.
-
http://bugs.mtasa.com/view.php?id=6928
-
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
-
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 )
-
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.
-
function toggleFRWindow() if getElementData(localPlayer,"muteF1") then return end if isWindowOpen(wndMain) then showCursor(false) hideAllWindows() colorPicker.closeSelect() else showCursor(true) showAllWindows() end end
-
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.
-
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.
-
Let's say you used a paper to draw the GUI, what about the coordinates?
-
How? With just scripting? Can you explain?
-
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?