-
Posts
7,337 -
Joined
-
Days Won
11
Everything posted by TAPL
-
Try to register and see if any text appears.
-
This command is in-game only. You can't write it in the black screen.
-
open /debugscript 3 and see if there any errors.
-
can you show me where? what line? function registerHandler(username, password) local account = getAccount(username, password) if (account ~= false) then outputChatBox( "", root, 255, 255, 255 ) else account = addAccount(username, password) if (logIn(source, account, password) == true) then triggerClientEvent(source, "hidewdwRegister", getRootElement()) end end end addEventHandler("submitRegister", root, registerHandler)
-
Do i have to repeat this again?
-
Line 1 - 2 make no sense, just remove it. Did you read what sockz said? i think you need it like this: attachElements(object, localPlayer, 0, 0, 1) and again
-
how can we help you if you did not post any code? if you using delux-host you may need to give permission 777
-
https://wiki.multitheftauto.com/wiki/AttachElements أو أستعمل المود ذا https://community.multitheftauto.com/index.php?p=resources&s=details&id=2540
-
maybe? exports.global:sendLocalMeAction(source, "dasdw4142 line") outputChatBox("#B81113ds421515151 line", 255, 194, 15, true) or maybe you using it server side, so it should be: exports.global:sendLocalMeAction(source, "dasdw4142 line") outputChatBox("#B81113ds421515151 line", source, 255, 194, 15, true) or you have to explain better.
-
No one will read more than thousand lines for you.
-
function switchEngine(player) local theVehicle = getPedOccupiedVehicle(player) if theVehicle and getVehicleController(theVehicle) == player then setVehicleEngineState(theVehicle, not getVehicleEngineState(theVehicle)) playSound("sound.mp3") end end addCommandHandler("engine", switchEngine)
-
https://wiki.multitheftauto.com/wiki/Call
-
You have double createObject in your code. And you need to use localPlayer in attachElements not source. Also you have to notice that the object will be visible only for the player who has pressed the button.
-
-- Client Side -- setBlurLevel(0) -- meta.xml --
-
you have the code, just use it! https://wiki.multitheftauto.com/wiki/SetPlayerBlurLevel
-
i don't understand where is the problem you have the code and you want to set it to 0 what's stopping you?
-
addEvent( "submitLogin",true ) function loginHandler(username,password) local account = getAccount (username, password) if account then logIn(source, account, password) triggerClientEvent(source,"HideGui",source) else outputChatBox("Zle zadane Meno alebo Heslo, skus znova prosim.",source) end end addEventHandler("submitLogin",root,loginHandler) wdwLogin = guiCreateWindow(0.375, 0.375, 0.70, 0.70, "Vitaj", true) guiCreateLabel(0.0825, 0.1, 0.25, 0.25, "Meno", true, wdwLogin) guiCreateLabel(0.0825, 0.2, 0.25, 0.25, "Heslo", true, wdwLogin) guiCreateLabel(0.0825, 0.6, 0.25, 0.25, "Info", true, wdwLogin) wdwRegister = guiCreateWindow(0.375, 0.375, 0.30, 0.30, "Registracia", true) guiCreateLabel(0.0825, 0.2, 0.25, 0.25, "Meno", true, wdwRegister) guiCreateLabel(0.0825, 0.4, 0.25, 0.25, "Heslo", true, wdwRegister) edtUser = guiCreateEdit(0.160, 0.1, 0.3, 0.06, "", true, wdwLogin) edtPass = guiCreateEdit(0.160, 0.2, 0.3, 0.06, "", true, wdwLogin) guiCreateMemo( 118, 200, 850, 280, "", false, wdwLogin ) guiEditSetMaxLength(edtUser, 50) guiEditSetMaxLength(edtPass, 50) edtUserS = guiCreateEdit(0.160, 0.2, 0.3, 0.06, "", true, wdwRegister) edtPassS = guiCreateEdit(0.160, 0.4, 0.3, 0.06, "", true, wdwRegister) guiEditSetMaxLength(edtUserS, 50) guiEditSetMaxLength(edtPassS, 50) btnLogin = guiCreateButton(0.500, 0.1, 0.25, 0.2, "Prihlasit", true, wdwLogin) btnRegister = guiCreateButton(0.750, 0.1, 0.25, 0.2, "Registracia", true, wdwLogin) btnRegisterS = guiCreateButton(0.750, 0.1, 0.25, 0.2, "Registrovat", true, wdwRegister) guiSetVisible(wdwRegister,false) showCursor(true) guiSetInputEnabled(true) addEventHandler('onClientGUIClick',root, function() if source == btnLogin then local user = guiGetText(edtUser) local pass = guiGetText(edtPass) if user ~= "" and pass ~= "" then triggerServerEvent('submitLogin',localPlayer,user,pass) else outputChatBox("Prosim napis svoje meno a heslo.") end end end ) addEvent("HideGui",true) addEventHandler("HideGui",root, function() guiSetInputEnabled(false) showCursor(false) guiSetVisible(wdwLogin,false) guiSetVisible(wdwRegister,false) end) addEventHandler('onClientGUIClick', root, function() if source == btnRegister then guiSetVisible(wdwRegister,true) end end)
-
Don't hide the gui when you click on the button, make a trigger to client side from server side if the login has successful and then hide it using setGuiVisible To make the password hidden use https://wiki.multitheftauto.com/wiki/GuiEditSetMasked and to make your script register you need to give him ACL right, this can be done by add the resource to admin group. also in your code you have forgot this addEvent("submitRegister",true) and please next time use lua button not Code.
-
The different is this resource use chat box, and the built-on for console only.
-
اطلب المساعدة من الأستضافة نفسها http://www.delux-software.com/easyadmin/contact
-
You need use this to check who has hit the marker is player. getElementType
-
i am sure you have problem, your login panel will be hidden whenever you click on the button even if the username/password are wrong. you have to trigger from server side to client side when the login successful to hide the gui.
-
function join() local country = exports.admin:getPlayerCountry(source) or "N/A" outputChatBox("#00ffff* [ Join ] [#ffffff"..getPlayerName(source).."#00ffff] [#ffffff"..country.."#00ffff]",root,0,0,0,true) end addEventHandler("onPlayerJoin", root, join) إذا كنت مشغله بسيرفر جهازك ما بيعطيك الدولة لان الآي بي حقك لوكل
-
Try wdwLogin = guiCreateWindow(0.375, 0.375, 0.70, 0.70, "Vitaj", true) guiCreateLabel(0.0825, 0.1, 0.25, 0.25, "Meno", true, wdwLogin) guiCreateLabel(0.0825, 0.2, 0.25, 0.25, "Heslo", true, wdwLogin) guiCreateLabel(0.0825, 0.6, 0.25, 0.25, "Info", true, wdwLogin) wdwRegister = guiCreateWindow(0.375, 0.375, 0.30, 0.30, "Registracia", true) guiCreateLabel(0.0825, 0.2, 0.25, 0.25, "Meno", true, wdwRegister) guiCreateLabel(0.0825, 0.4, 0.25, 0.25, "Heslo", true, wdwRegister) edtUser = guiCreateEdit(0.160, 0.1, 0.3, 0.06, "", true, wdwLogin) edtPass = guiCreateEdit(0.160, 0.2, 0.3, 0.06, "", true, wdwLogin) guiCreateMemo( 118, 200, 850, 280, "", false, wdwLogin ) guiEditSetMaxLength(edtUser, 50) guiEditSetMaxLength(edtPass, 50) edtUserS = guiCreateEdit(0.160, 0.2, 0.3, 0.06, "", true, wdwRegister) edtPassS = guiCreateEdit(0.160, 0.4, 0.3, 0.06, "", true, wdwRegister) guiEditSetMaxLength(edtUserS, 50) guiEditSetMaxLength(edtPassS, 50) btnLogin = guiCreateButton(0.500, 0.1, 0.25, 0.2, "Prihlasit", true, wdwLogin) btnRegister = guiCreateButton(0.750, 0.1, 0.25, 0.2, "Registracia", true, wdwLogin) btnRegisterS = guiCreateButton(0.750, 0.1, 0.25, 0.2, "Registrovat", true, wdwRegister) guiSetVisible(wdwRegister,false) showCursor(true) guiSetInputEnabled(true) addEventHandler('onClientGUIClick',root, function() if source == btnLogin then local user = guiGetText(edtUser) local pass = guiGetText(edtPass) if user ~= "" and pass ~= "" then triggerServerEvent('submitLogin',localPlayer,user,pass) guiSetInputEnabled(false) showCursor(false) guiSetVisible(wdwLogin,false) else outputChatBox("Prosim napis svoje meno a heslo.") guiSetVisible(wdwLogin,true) end end end ) addEventHandler('onClientGUIClick', root, function() if source == btnRegister then guiSetVisible(wdwRegister,true) end end)
