Leaderboard
Popular Content
Showing content with the highest reputation on 05/06/22 in all areas
-
Hi, we do have some server protection tools available - I can take a closer look if you PM me your server IP address, its full name, and the date it was created2 points
-
Hello and welcome! Code 0xE06D7363 means out of memory. It's usually caused if you have low RAM on your computer or the server is abusing memory (either poorly optimized scripts/mods).1 point
-
Hallo @Otto vn sakoa , ich habe ein Abstimmungssystem für dich, ich kann es mit dir teilen, wenn es dir gefällt, kannst du es zeigen, indem du meine Nachricht magst. setElementData(resourceRoot,"VotesYes",0) setElementData(resourceRoot,"VotesNo",0) setElementData(resourceRoot,"VoteStarted",false) setElementData(resourceRoot,"Question","") setElementData(resourceRoot,"voteYesLabelText","") setElementData(resourceRoot,"voteNoLabelText","") function createVote(playerSource) if getElementData(resourceRoot,"VoteStarted") == true then return end setElementData(resourceRoot,"VoteStarted",true) local accountName = (getAccountName(getPlayerAccount(playerSource))) if isObjectInACLGroup("user."..accountName,aclGetGroup("Console")) or isObjectInACLGroup("user."..accountName,aclGetGroup("Admin")) then triggerClientEvent("showCreateVoteGuiEvent",playerSource) end end addCommandHandler("createvote",createVote) function closeVote(playerSource) if getElementData(resourceRoot,"VoteStarted") == false then return end setElementData(resourceRoot,"VoteStarted",false) local accountName = (getAccountName(getPlayerAccount(playerSource))) if isObjectInACLGroup("user."..accountName,aclGetGroup("Console")) or isObjectInACLGroup("user."..accountName,aclGetGroup("Admin")) then accountNameTable = {} setElementData(resourceRoot,"VotesYes",0) setElementData(resourceRoot,"VotesNo",0) triggerClientEvent("closeVoteScoreGuiEvent",root) end end addCommandHandler("closevote",closeVote) accountNameTable = {} function voteYes(playerSource) if getElementData(resourceRoot,"VoteStarted") == false then return end local accountName = (getAccountName(getPlayerAccount(playerSource))) for key,value in pairs(accountNameTable) do if accountName == value then outputChatBox("You already voted.",playerSource) return end end accountNameTable[#accountNameTable + 1] = accountName setElementData(resourceRoot,"VotesYes",getElementData(resourceRoot,"VotesYes") + 1) triggerClientEvent("updateVoteYesEvent",root) end addCommandHandler("voteyes",voteYes) function voteNO(playerSource) if getElementData(resourceRoot,"VoteStarted") == false then return end local accountName = (getAccountName(getPlayerAccount(playerSource))) for key,value in pairs(accountNameTable) do if accountName == value then outputChatBox("You already voted.",playerSource) return end end accountNameTable[#accountNameTable + 1] = accountName setElementData(resourceRoot,"VotesNo",getElementData(resourceRoot,"VotesNo") + 1) triggerClientEvent("updateVoteNoEvent",root) end addCommandHandler("voteno",voteNO) function showVoteScore() Question = getElementData(resourceRoot,"Question") YES = getElementData(resourceRoot,"voteYesLabelText") NO = getElementData(resourceRoot,"voteNoLabelText") for i = 1,#getElementsByType("player") do triggerClientEvent("showVoteScoreGuiEvent",getElementsByType("player")[i],Question,YES,NO) end end addEvent("showVoteScoreEvent",true) addEventHandler("showVoteScoreEvent",resourceRoot,showVoteScore) function bindVoteKeys() bindKey(source,"F3","down","voteyes") bindKey(source,"F4","down","voteno") if getElementData(resourceRoot,"VoteStarted") == true then triggerClientEvent("showVoteScoreGuiEvent",source,getElementData(resourceRoot,"Question"),getElementData(resourceRoot,"voteYesLabelText"),getElementData(resourceRoot,"voteNoLabelText")) end end addEventHandler("onPlayerLogin",root,bindVoteKeys) function bindVoteStartup() for i = 1,#getElementsByType("player") do bindKey(getElementsByType("player")[i],"F3","down","voteyes") bindKey(getElementsByType("player")[i],"F4","down","voteno") end end addEventHandler("onResourceStart",resourceRoot,bindVoteStartup) Dieser Code befindet sich auf der server.lua-Seite function showVoteScoreGui(Question,Yes,No) guiSetText(voteQuestionLabel,Question) if string.len(guiGetText(voteQuestionLabel)) > 35 then guiSetPosition(voteQuestionLabel,0.35,0.17,true) elseif string.len(guiGetText(voteQuestionLabel)) < 14 then guiSetPosition(voteQuestionLabel,0.43,0.17,true) else guiSetPosition(voteQuestionLabel,0.4,0.17,true) end guiSetText(voteYesLabel,Yes..": "..getElementData(resourceRoot,"VotesYes")) guiSetText(voteNOLabel,No..": "..getElementData(resourceRoot,"VotesNo")) guiSetVisible(voteYesLabel,true) guiSetVisible(voteNOLabel,true) guiSetVisible(voteQuestionLabel,true) guiSetVisible(voteF3Label,true) guiSetVisible(voteF4Label,true) end addEvent("showVoteScoreGuiEvent",true) addEventHandler("showVoteScoreGuiEvent",localPlayer,showVoteScoreGui) function closeVoteScoreGui() guiSetVisible(voteYesLabel,false) guiSetVisible(voteNOLabel,false) guiSetVisible(voteQuestionLabel,false) guiSetVisible(voteF3Label,false) guiSetVisible(voteF4Label,false) end addEvent("closeVoteScoreGuiEvent",true) addEventHandler("closeVoteScoreGuiEvent",root,closeVoteScoreGui) function updateVoteYes() guiSetText(voteYesLabel,getElementData(resourceRoot,"voteYesLabelText")..": "..getElementData(resourceRoot,"VotesYes")) end addEvent("updateVoteYesEvent",true) addEventHandler("updateVoteYesEvent",root,updateVoteYes) function updateVoteNo() guiSetText(voteNOLabel,getElementData(resourceRoot,"voteNoLabelText")..": "..getElementData(resourceRoot,"VotesNo")) end addEvent("updateVoteNoEvent",true) addEventHandler("updateVoteNoEvent",root,updateVoteNo) function voteButtonAction() if source == voteButton1 then showCursor(false) guiSetInputEnabled(false) guiSetVisible(voteEdit1,false) guiSetVisible(voteEdit2,false) guiSetVisible(voteEdit3,false) guiSetVisible(voteButton1,false) guiSetVisible(voteButton2,false) setElementData(resourceRoot,"Question",guiGetText(voteEdit1)) setElementData(resourceRoot,"voteYesLabelText",guiGetText(voteEdit2)) setElementData(resourceRoot,"voteNoLabelText",guiGetText(voteEdit3)) triggerServerEvent("showVoteScoreEvent",resourceRoot) end if source == voteButton2 then showCursor(false) guiSetInputEnabled(false) guiSetVisible(voteEdit1,false) guiSetVisible(voteEdit2,false) guiSetVisible(voteEdit3,false) guiSetVisible(voteButton1,false) guiSetVisible(voteButton2,false) setElementData(resourceRoot,"VoteStarted",false) end end function createVoteGui() voteYesLabel = guiCreateLabel(0.4,0.2,0.3,0.05,"",true) voteNOLabel = guiCreateLabel(0.5,0.2,0.3,0.05,"",true) voteQuestionLabel = guiCreateLabel(0.4,0.17,1,0.05,"",true) voteF3Label = guiCreateLabel(0.445,0.95,1,0.05,"Press F3 to vote option 1.",true) voteF4Label = guiCreateLabel(0.445,0.97,1,0.05,"Press F4 to vote option 2.",true) guiSetVisible(voteYesLabel,false) guiSetVisible(voteNOLabel,false) guiSetVisible(voteQuestionLabel,false) guiSetVisible(voteF3Label,false) guiSetVisible(voteF4Label,false) voteEdit1 = guiCreateEdit(0.3,0.3,0.3,0.05,"Vote Question",true) voteEdit2 = guiCreateEdit(0.415,0.355,0.073,0.05,"YES",true) voteEdit3 = guiCreateEdit(0.49,0.355,0.073,0.05,"NO",true) guiEditSetMaxLength(voteEdit1,50) guiEditSetMaxLength(voteEdit2,10) guiEditSetMaxLength(voteEdit3,10) voteButton1 = guiCreateButton(0.305,0.355,0.05,0.05,"Accept",true) voteButton2 = guiCreateButton(0.36,0.355,0.05,0.05,"Cancel",true) guiSetVisible(voteEdit1,false) guiSetVisible(voteEdit2,false) guiSetVisible(voteEdit3,false) guiSetVisible(voteButton1,false) guiSetVisible(voteButton2,false) addEventHandler("onClientGUIClick",voteButton1,voteButtonAction,false) addEventHandler("onClientGUIClick",voteButton2,voteButtonAction,false) end createVoteGui() function showCreateVoteGui() showCursor(true) guiSetInputEnabled(true) guiSetVisible(voteEdit1,true) guiSetVisible(voteEdit2,true) guiSetVisible(voteEdit3,true) guiSetVisible(voteButton1,true) guiSetVisible(voteButton2,true) end addEvent("showCreateVoteGuiEvent",true) addEventHandler("showCreateVoteGuiEvent",localPlayer,showCreateVoteGui) fileDelete("gui_client.lua") Dieser Code befindet sich auf der Seite gui_client.lua. Ich hoffe, es wird für Sie funktionieren. <meta> <info type="script"/> <script src="gui_client.lua" type="client"/> <script src="server.lua" type="server"/> </meta> meta.xml1 point
-
Merhaba@BurakAKSAKAL sizin sorununz için bir kaç metin ayarladım, bu şekilde düzenlemeler yapabilirsiniz, eğer başka sorunların olursa lütfen yeni bir konu açarak Beni çağırınız ve beni bekleyin. "call" fonksiyonu biraz eskide kaldı,addEventHandler kullanmanızı tavsiye edebilirim. addEvent("setAnimatedProgressBarProgress", true) addEventHandler("setAnimatedProgressBarProgress", getRootElement(), setAnimatedProgressBarProgress) Bu iki satır, işlev bittikten sonra istemci tarafına gidin,ve if den sonra sunucu tarafına: if ( rafalh_shared_res and optionData.bar ) then triggerServerEvent ( "setAnimatedProgressBarProgress", ...(ARGUMENTS) )1 point
-
Hello everyone, we have succefully gone through our first Beta phase. I want to thanks everyone who participated in the beta for their feedback and suggestions! Now we are again in closed development, adding new features and patching up existing systems according to feedback received and to improve Quality of Life. The mapping team is working hard to bring immersion to the game world and there is still a lot to be done. Therefore we are now looking for mappers to strengthen our team. What we ask: - Show a sample of your previous mapping work - Be able to communicate in English - Have some knowledge about mapping in MTA What we offer: - Enjoy donation package benefits once we launch, for free, as part of our staff team - Be at an advantage for an admin position (when we need any), if you're interested - Have people in the game server enjoy your work If you are interested in helping us, please head over to our Discord server and write a DM to @SCANDALOUZ#81691 point
-
Hi, welcome to the forums! Unfortunately, your specs are indeed quite low-end. Since you've already tried reducing your graphics and tweaking with the settings overall (both GTA and MTA) in order to optimize your performance, I'll not go into that further. The servers you're playing can have quite an impact on your performance aswell. Badly optimized and heavy-modded servers can also take a toll on your performance, especially considering your overall specs. Other than general tweaks and eventually some optimization mods that don't intervene with MTA, your options are to either: Upgrade to a better laptop/PC (I understand this might be hard to do, I believe you would've done this already if this was viable, but nonetheless it's something to consider long-term as the preferred option); Join well-made servers that concentrate their efforts into using well-optimized scripts and are not heavily-modded (or at least they offer low-end specs player the option to toggle those modded assets).1 point
-
Hi. We are not removing this ban. I'm sorry it's not the news you were looking for.0 points