
undefined
Members-
Posts
500 -
Joined
-
Last visited
Everything posted by undefined
-
Mysql is very tangled. Im make this on accountData. But it's save only HPLev1 button. Where is the problem? Client-Side Code Removed Server-Side Code Removed
-
I have no idea of how to do. Can you give me simple example on my code?
-
Hi Guys. I have a problem. Im make this but i can't save this with setElementData. When the players exit the server all the entries disappear. Help pls. It's not give warning or error on debugscript ... Code Removed
-
I will try it!
-
Now this is my all code. outputchatbox will use instead triggerServerEvent. My problem is this; "1" is selected, say "You take the Mission I". "2" is selected, say "You take the Mission I". But it must say "You take the Mission II" If i fix these problems, I'm going to write other codes. Help pls
-
Im chose the "Mission I". It's say "You take the Mission I". And im chose the "Mission II". It's say again "You take the Mission I". But it must say "You take the Mission II". My Code local allMissions = { [1]={ ["name"] = "Mission I", ["info"] = "asefafasf asd asgd asd aysda shgd asd sdjf fs fh" }, [2]={ ["name"] = "Mission II", ["info"] = "asDFsdf sdsD Fasdfas fdfH:SD dfG sdfg" } } ... ... ... if (allMissions[1]) then outputChatBox ("You take the Mission I") elseif (allMissions[2]) then outputChatBox ("You take the Mission II") end Help me!!!
-
Hi Guys. I have a problem. Im made a mission system. I want to show this task gui system. Im make this but it's only say "asd". Im how to fix it? Client-Side-Part if (allMissions[1]) then outputChatBox ("You take the Mission I") elseif (allMissions[2]) then outputChatBox ("You take the Mission II") end All Code local allMissions = { [1]={ ["name"] = "Mission I", ["info"] = "asefafasf asd asgd asd aysda shgd asd sdjf fs fh" }, [2]={ ["name"] = "Mission II", ["info"] = "asDFsdf sdsD Fasdfas fdfH:SD dfG sdfg" } } addEventHandler("onClientResourceStart", resourceRoot, function() missionWindow = guiCreateWindow(238, 190, 402, 264, "Mission Panel", false) guiSetVisible(missionWindow, false) guiWindowSetSizable(missionWindow, false) guiSetAlpha(missionWindow, 0.65) nameGrid = guiCreateGridList(10, 26, 122, 228, false, missionWindow) guiGridListAddColumn(nameGrid, "Missions", 0.7) local mrow = guiGridListAddRow(nameGrid) guiGridListSetItemText(nameGrid,mrow,1,"Missions",true,false) myFont = guiCreateFont( "font.otf", 12 ) --guiSetProperty (nameGrid, "#Font", "default-bold-small" ) infoGrid = guiCreateGridList(142, 26, 250, 180, false, missionWindow) infoLab = guiCreateLabel(10, 40, 230, 130, "", false, infoGrid) guiSetFont(infoLab, "default-bold-small") guiLabelSetHorizontalAlign(infoLab, "center", true) yesnoGrid = guiCreateGridList(0, 10, 230, 120, false, infoLab) guiSetVisible(yesnoGrid, false) yesnoLab = guiCreateLabel(10, 10, 210, 66, "Do you want to be continue?", false, yesnoGrid) guiSetFont(yesnoLab, myFont) guiLabelSetHorizontalAlign(yesnoLab, "center", true) guiLabelSetVerticalAlign(yesnoLab, "center") yes = guiCreateButton(20, 86, 66, 24, "Yes", false, yesnoGrid) guiSetFont(yes, "default-bold-small") no = guiCreateButton(144, 86, 66, 24, "No", false, yesnoGrid) guiSetFont(no, "default-bold-small") infoNameLab = guiCreateLabel(10, 9, 230, 21, "", false, infoGrid) guiSetFont(infoNameLab, myFont) guiLabelSetHorizontalAlign(infoNameLab, "center", true) for i=1,#allMissions do local row = guiGridListAddRow(nameGrid) guiGridListSetItemText(nameGrid,row,1,allMissions[i].name,false,false) end addEventHandler("onClientGUIClick",nameGrid,function() local row = guiGridListGetSelectedItem(nameGrid) if(row > 0) then local name = guiGridListGetItemText(nameGrid,row,1) guiSetText(infoLab,allMissions[row].info) guiSetText(infoNameLab,allMissions[row].name) end end, false) take = guiCreateButton(142, 223, 98, 31, "Take Mission", false, missionWindow) guiSetFont(take, "default-bold-small") close = guiCreateButton(294, 223, 98, 31, "Close", false, missionWindow) guiSetFont(close, "default-bold-small") end ) function select() if (source == close) then guiSetVisible(missionWindow,false) guiSetVisible (yesnoGrid, false) showCursor(false) elseif (source == take) then guiSetVisible (yesnoGrid, true) elseif (source == no) then guiSetVisible (yesnoGrid, false) elseif (source == yes) then guiSetVisible (missionWindow, false) guiSetVisible (yesnoGrid, false) showCursor(false) if (allMissions[1]) then outputChatBox ("You take the Mission I") elseif (allMissions[2]) then outputChatBox ("You take the Mission II") end end end addEventHandler("onClientGUIClick", root, select) function open() if (guiGetVisible (missionWindow) == true) then guiSetVisible(missionWindow, false) showCursor(false) elseif (guiGetVisible (missionWindow) == false) then guiSetVisible(missionWindow, true) showCursor(true) end end bindKey ("R", "down", open) Help Pls...
-
It's Solved!
-
How to setCameraMatrix on vehicle? Im tryed this but its not worked. local vehicle = createVehicle(470, 320, 1980, 25, 0, 0, 90) setCameraMatrix( source, vehicle ) And how to move vehicle? like this object = createObject(3567, 0, 0, 30, 0, 0, 0) moveObject(object , 6000, 0, 0, 14, 0, 0, 0)
-
Ok. Im post the script on pm.
-
Put the addEventHandler after the rest of the code inside the for-loop (like shown in my code, pretty much). I don't understand. (Do you speak Turkish?) or can you explain a little more?
-
Thank you, it's work perfectly but...? How to respawn vehicle toggleVehicleRespawn( vehicles, true ) setVehicleRespawnDelay( vehicles, 10000 ) setVehicleIdleRespawnDelay( vehicles, 60000 ) -------------------------------------- Im solved it... How to fix it? function mission ( thePlayer, seat ) if ( thePlayer ) and ( seat == 0 ) and ( source == vehicle ) then if not getElementData(source,"girdi") and not getAccountData(getPlayerAccount(source),"task") then local pveh = getPlayerOccupiedVehicle ( thePlayer ) setMarkerTarget(checkpoint,213.78820800781, 1903.7325439453, 16) a51blip = createBlip(213.78820800781, 1903.7325439453, 14.765625,31,2,255,0,0,255,1234,1000,source) setVehicleLocked ( pveh, true ) setElementData(source,"girdi",true) end end end addEventHandler ("onVehicleEnter", vehicle, mission)--This line is 120 WARNING: mission/mission_s.lua:120: Bad argument @ 'addEventHandler' [Expected element at argument 2, got nill]
-
Hi guys. Im work on the new mission. But i have a problem. It's say; WARNING: mission/mission_s.lua:3: Bad argument @ 'setCameraTarget' What is the problem? Server-Side Part function mission() setCameraMatrix(source, 1468.8785400391, -919.25317382813, 100.153465271, 1468.388671875, -918.42474365234, 99.881813049316) setTimer(function() setCameraTarget(source,source) end,5000,1) end addEventHandler("onPlayerLogin", getRootElement(), function() mission(source) end) And how to create all vehicle? vehicle = { [470] = { -2508.3, 741.59998, 34.9, 0, 0, 180},---Patriot--- [470] = { -2508.3, 741.59998, 34.9, 0, 0, 180},---Patriot--- [470] = { -2508.3, 741.59998, 34.9, 0, 0, 180},---Patriot--- [470] = { -2508.3, 741.59998, 34.9, 0, 0, 180},---Patriot--- ---------------------------------------------------------------- [433] = { -2490.8999, 741.4, 35.6, 0, 0, 180},---Barrack--- [433] = { -2486.3999, 741.4, 35.6, 0, 0, 180},---Barrack--- [433] = { -2482.0001, 741.4, 35.6, 0, 0, 180},---Barrack--- [433] = { -2477.8000, 741.4, 35.6, 0, 0, 180},---Barrack--- ---------------------------------------------------------------- [500] = { -2473.3005, 741.2, 35.2, 0, 0, 180},---Mesa--- [500] = { -2468.8999, 741.2, 35.2, 0, 0, 180},---Mesa--- [500] = { -2464.6001, 741.2, 35.2, 0, 0, 180},---Mesa--- [500] = { -2460.3005, 741.2, 35.2, 0, 0, 180},---Mesa--- ---------------------------------------------------------------- [416] = { -2429.6001, 741.2, 34.7, 0, 0, 180},---Ambulance--- [416] = { -2425.1999, 741.2, 34.7, 0, 0, 180},---Ambulance--- [416] = { -2421.0005, 741.2, 34.7, 0, 0, 180},---Ambulance--- ---------------------------------------------------------------- [422] = { -2408, 741.2, 35, 0, 0, 180},---Bobcat--- [422] = { -2412, 741.2, 35, 0, 0, 180},---Bobcat--- [422] = { -2416, 741.2, 35, 0, 0, 180},---Bobcat--- ---------------------------------------------------------------- [540] = { -2405, 725, 35, 0, 0, 0},---Vincent--- [540] = { -2410, 725, 35, 0, 0, 0},---Vincent--- [540] = { -2415, 725, 35, 0, 0, 0},---Vincent--- [540] = { -2420, 725, 35, 0, 0, 0} ---Vincent--- } missionVehicle = createVehicle ( vehicle ) WARNING: mission/mission_s.lua:31: Bad argument @ 'createVehicle' Help pls.
-
Pff. I can't this Can you give me example?
-
So I want to save "guiSetEnabled".
-
Click on this button the player can not be click then.
-
Hi Guys. I have a problem. I want to save it... addEventHandler("onClientResourceStart", resourceRoot, function() testGrid = guiCreateGridList(589, 281, 200, 150, false) guiSetVisible(testGrid, false) guiSetAlpha(testGrid, 0.65) testLab = guiCreateLabel(10, 4, 180, 15, "Test Panel [F4]", false, testGrid) guiSetFont(testLab, "default-bold-small") guiLabelSetHorizontalAlign(testLab, "center", false) guiLabelSetVerticalAlign(testLab, "center") test1But = guiCreateButton(10, 29, 45, 45, "Test 1", false, testGrid) test3But = guiCreateButton(145, 29, 45, 45, "Test 3", false, testGrid) test2But = guiCreateButton(78, 29, 45, 45, "Test 2", false, testGrid) test4But = guiCreateButton(10, 84, 45, 45, "Test 4", false, testGrid) test5But = guiCreateButton(78, 84, 45, 45, "Test 5", false, testGrid) test6But = guiCreateButton(145, 84, 45, 45, "Test 6", false, testGrid) addEventHandler ( "onClientGUIClick", test1But, test1Button, false ) addEventHandler ( "onClientGUIClick", test2But, test2Button, false ) addEventHandler ( "onClientGUIClick", test3But, test3Button, false ) addEventHandler ( "onClientGUIClick", test4But, test4Button, false ) addEventHandler ( "onClientGUIClick", test5But, test5Button, false ) addEventHandler ( "onClientGUIClick", test6But, test6Button, false ) guiSetEnabled (test1But, true) guiSetEnabled (test2But, false) guiSetEnabled (test3But, false) guiSetEnabled (test4But, false) guiSetEnabled (test5But, false) guiSetEnabled (test6But, false) end ) function testOpen() if (guiGetVisible (testGrid) == true) then guiSetVisible(testGrid, false) showCursor(false) elseif (guiGetVisible (testGrid) == false) then guiSetVisible(testGrid, true) showCursor(true) end end bindKey ("F4", "down", testOpen) function test1Button() guiSetEnabled (test1But, false) guiSetEnabled (test2But, true) guiSetEnabled (test3But, false) guiSetEnabled (test4But, false) guiSetEnabled (test5But, false) guiSetEnabled (test6But, false) outputChatBox("You are clicked Test 1 Button") end function test2Button() guiSetEnabled (test1But, false) guiSetEnabled (test2But, false) guiSetEnabled (test3But, true) guiSetEnabled (test4But, false) guiSetEnabled (test5But, false) guiSetEnabled (test6But, false) outputChatBox("You are clicked Test 2 Button") end function test3Button() guiSetEnabled (test1But, false) guiSetEnabled (test2But, false) guiSetEnabled (test3But, false) guiSetEnabled (test4But, true) guiSetEnabled (test5But, false) guiSetEnabled (test6But, false) outputChatBox("You are clicked Test 3 Button") end function test4Button() guiSetEnabled (test1But, false) guiSetEnabled (test2But, false) guiSetEnabled (test3But, false) guiSetEnabled (test4But, false) guiSetEnabled (test5But, true) guiSetEnabled (test6But, false) outputChatBox("You are clicked Test 4 Button") end function test5Button() guiSetEnabled (test1But, false) guiSetEnabled (test2But, false) guiSetEnabled (test3But, false) guiSetEnabled (test4But, false) guiSetEnabled (test5But, false) guiSetEnabled (test6But, true) outputChatBox("You are clicked Test 5 Button") end function test6Button() guiSetEnabled (test1But, false) guiSetEnabled (test2But, false) guiSetEnabled (test3But, false) guiSetEnabled (test4But, false) guiSetEnabled (test5But, false) guiSetEnabled (test6But, false) outputChatBox("You are clicked Test 6 Button") end Im try it but it's not work. addEventHandler("onClientResourceStart", resourceRoot, function() testGrid = guiCreateGridList(589, 281, 200, 150, false) guiSetVisible(testGrid, false) guiSetAlpha(testGrid, 0.65) testLab = guiCreateLabel(10, 4, 180, 15, "Test Panel [F4]", false, testGrid) guiSetFont(testLab, "default-bold-small") guiLabelSetHorizontalAlign(testLab, "center", false) guiLabelSetVerticalAlign(testLab, "center") test1But = guiCreateButton(10, 29, 45, 45, "Test 1", false, testGrid) test3But = guiCreateButton(145, 29, 45, 45, "Test 3", false, testGrid) test2But = guiCreateButton(78, 29, 45, 45, "Test 2", false, testGrid) test4But = guiCreateButton(10, 84, 45, 45, "Test 4", false, testGrid) test5But = guiCreateButton(78, 84, 45, 45, "Test 5", false, testGrid) test6But = guiCreateButton(145, 84, 45, 45, "Test 6", false, testGrid) addEventHandler ( "onClientGUIClick", test1But, test1Button, false ) addEventHandler ( "onClientGUIClick", test2But, test2Button, false ) addEventHandler ( "onClientGUIClick", test3But, test3Button, false ) addEventHandler ( "onClientGUIClick", test4But, test4Button, false ) addEventHandler ( "onClientGUIClick", test5But, test5Button, false ) addEventHandler ( "onClientGUIClick", test6But, test6Button, false ) end ) function testOpen() if (guiGetVisible (testGrid) == true) then guiSetVisible(testGrid, false) showCursor(false) elseif (guiGetVisible (testGrid) == false) then guiSetVisible(testGrid, true) showCursor(true) end end bindKey ("F4", "down", testOpen) function afterLogin() if not getElementData (localPlayer, "enabled") then guiSetEnabled (test1But, true) guiSetEnabled (test2But, false) guiSetEnabled (test3But, false) guiSetEnabled (test4But, false) guiSetEnabled (test5But, false) guiSetEnabled (test6But, false) end end addEventHandler("onPlayerLogin", getRootElement(), function() afterLogin(source) end) function test1Button() if ( guiGetEnabled (test1But) == true and not getElementData (localPlayer, "enabled") ) then guiSetEnabled (test1But, false) guiSetEnabled (test2But, true) guiSetEnabled (test3But, false) guiSetEnabled (test4But, false) guiSetEnabled (test5But, false) guiSetEnabled (test6But, false) outputChatBox("You are clicked Test 1 Button") setElementData (localPlayer, "enabled", true) end end function test2Button() if ( guiGetEnabled (test2But) == true and not getElementData (localPlayer, "enabled") ) then guiSetEnabled (test1But, false) guiSetEnabled (test2But, false) guiSetEnabled (test3But, true) guiSetEnabled (test4But, false) guiSetEnabled (test5But, false) guiSetEnabled (test6But, false) outputChatBox("You are clicked Test 2 Button") setElementData (localPlayer, "enabled", true) end end function test3Button() if ( guiGetEnabled (test3But) == true and not getElementData (localPlayer, "enabled") ) then guiSetEnabled (test1But, false) guiSetEnabled (test2But, false) guiSetEnabled (test3But, false) guiSetEnabled (test4But, true) guiSetEnabled (test5But, false) guiSetEnabled (test6But, false) outputChatBox("You are clicked Test 3 Button") setElementData (localPlayer, "enabled", true) end end function test4Button() if ( guiGetEnabled (test4But) == true and not getElementData (localPlayer, "enabled") ) then guiSetEnabled (test1But, false) guiSetEnabled (test2But, false) guiSetEnabled (test3But, false) guiSetEnabled (test4But, false) guiSetEnabled (test5But, true) guiSetEnabled (test6But, false) outputChatBox("You are clicked Test 4 Button") setElementData (localPlayer, "enabled", true) end end function test5Button() if ( guiGetEnabled (test5But) == true and not getElementData (localPlayer, "enabled") ) then guiSetEnabled (test1But, false) guiSetEnabled (test2But, false) guiSetEnabled (test3But, false) guiSetEnabled (test4But, false) guiSetEnabled (test5But, false) guiSetEnabled (test6But, true) outputChatBox("You are clicked Test 5 Button") setElementData (localPlayer, "enabled", true) end end function test6Button() if ( guiGetEnabled (test6But) == true and not getElementData (localPlayer, "enabled") ) then guiSetEnabled (test1But, false) guiSetEnabled (test2But, false) guiSetEnabled (test3But, false) guiSetEnabled (test4But, false) guiSetEnabled (test5But, false) guiSetEnabled (test6But, false) outputChatBox("You are clicked Test 6 Button") setElementData (localPlayer, "enabled", true) end end and im try it but it's give error addEventHandler("onClientResourceStart", resourceRoot, function() testGrid = guiCreateGridList(589, 281, 200, 150, false) guiSetVisible(testGrid, false) guiSetAlpha(testGrid, 0.65) testLab = guiCreateLabel(10, 4, 180, 15, "Test Panel [F4]", false, testGrid) guiSetFont(testLab, "default-bold-small") guiLabelSetHorizontalAlign(testLab, "center", false) guiLabelSetVerticalAlign(testLab, "center") test1But = guiCreateButton(10, 29, 45, 45, "Test 1", false, testGrid) test3But = guiCreateButton(145, 29, 45, 45, "Test 3", false, testGrid) test2But = guiCreateButton(78, 29, 45, 45, "Test 2", false, testGrid) test4But = guiCreateButton(10, 84, 45, 45, "Test 4", false, testGrid) test5But = guiCreateButton(78, 84, 45, 45, "Test 5", false, testGrid) test6But = guiCreateButton(145, 84, 45, 45, "Test 6", false, testGrid) addEventHandler ( "onClientGUIClick", test1But, test1Button, false ) addEventHandler ( "onClientGUIClick", test2But, test2Button, false ) addEventHandler ( "onClientGUIClick", test3But, test3Button, false ) addEventHandler ( "onClientGUIClick", test4But, test4Button, false ) addEventHandler ( "onClientGUIClick", test5But, test5Button, false ) addEventHandler ( "onClientGUIClick", test6But, test6Button, false ) end ) function testOpen() if (guiGetVisible (testGrid) == true) then guiSetVisible(testGrid, false) showCursor(false) elseif (guiGetVisible (testGrid) == false) then guiSetVisible(testGrid, true) showCursor(true) end end bindKey ("F4", "down", testOpen) function afterLogin(p) local source = p local account = getPlayerAccount(source) if not getAccountData(account,"enabled") then guiSetEnabled (test1But, true) guiSetEnabled (test2But, false) guiSetEnabled (test3But, false) guiSetEnabled (test4But, false) guiSetEnabled (test5But, false) guiSetEnabled (test6But, false) else setAccountData(account,"enabled",true) end end addEventHandler("onPlayerLogin", getRootElement(), function() afterLogin(source) end) function test1Button(p) if not getAccountData(getPlayerAccount(p),"enabled") then guiSetEnabled (test1But, false) guiSetEnabled (test2But, true) guiSetEnabled (test3But, false) guiSetEnabled (test4But, false) guiSetEnabled (test5But, false) guiSetEnabled (test6But, false) outputChatBox("You are clicked Test 1 Button") local account = getPlayerAccount(p) setAccountData(account,"enabled",true) end end function test2Button(p) if not getAccountData(getPlayerAccount(p),"enabled") then guiSetEnabled (test1But, false) guiSetEnabled (test2But, false) guiSetEnabled (test3But, true) guiSetEnabled (test4But, false) guiSetEnabled (test5But, false) guiSetEnabled (test6But, false) outputChatBox("You are clicked Test 2 Button") local account = getPlayerAccount(p) setAccountData(account,"enabled",true) end end function test3Button(p) if not getAccountData(getPlayerAccount(p),"enabled") then guiSetEnabled (test1But, false) guiSetEnabled (test2But, false) guiSetEnabled (test3But, false) guiSetEnabled (test4But, true) guiSetEnabled (test5But, false) guiSetEnabled (test6But, false) outputChatBox("You are clicked Test 3 Button") local account = getPlayerAccount(p) setAccountData(account,"enabled",true) end end function test4Button(p) if not getAccountData(getPlayerAccount(p),"enabled") then guiSetEnabled (test1But, false) guiSetEnabled (test2But, false) guiSetEnabled (test3But, false) guiSetEnabled (test4But, false) guiSetEnabled (test5But, true) guiSetEnabled (test6But, false) outputChatBox("You are clicked Test 4 Button") local account = getPlayerAccount(p) setAccountData(account,"enabled",true) end end function test5Button(p) if not getAccountData(getPlayerAccount(p),"enabled") then guiSetEnabled (test1But, false) guiSetEnabled (test2But, false) guiSetEnabled (test3But, false) guiSetEnabled (test4But, false) guiSetEnabled (test5But, false) guiSetEnabled (test6But, true) outputChatBox("You are clicked Test 5 Button") local account = getPlayerAccount(p) setAccountData(account,"enabled",true) end end function test6Button(p) if not getAccountData(getPlayerAccount(p),"enabled") then guiSetEnabled (test1But, false) guiSetEnabled (test2But, false) guiSetEnabled (test3But, false) guiSetEnabled (test4But, false) guiSetEnabled (test5But, false) guiSetEnabled (test6But, false) outputChatBox("You are clicked Test 6 Button") local account = getPlayerAccount(p) setAccountData(account,"enabled",true) end end How to save it. Help me pls
-
dff = engineLoadDFF ( "filename.dff", 411) engineReplaceModel ( dff, 411 ) txd = engineLoadTXD ( "filename.txd",411 ) engineImportTXD ( txd, 411 ) meta.xml <meta> <info author="aRc" type="script" name="infernus skin" /> <script src="infernusskin.lua" type="client" /> <file src="filename.dff" /> <file src="filename.txd" /> </meta>
-
İt's solved.
-
Up! Pls help me!
-
What is the problem? Client-Side Part Client-Side Part
-
local x,y = guiGetScreenSize() local level__ = exports.jack:getPlayerLevel ( player ) local exp__ = exports.jack:getPlayerEXP ( player ) addEventHandler("onClientResourceStart", resourceRoot, function() sWindow = guiCreateWindow((x/2)-150, (y/2)-150, 300, 300, "Test Panel", false) guiWindowSetSizable(sWindow, false) guiSetVisible(sWindow, true) guiSetAlpha(sWindow, 0.60) testLab = guiCreateLabel(430, 41, 163, 30, "Test", false, sWindow) guiLabelSetColor(testLab, 255, 255, 255) guiLabelSetHorizontalAlign(testLab, "center", true) guiLabelSetVerticalAlign(testLab, "center") if ( level__ < 3 ) and ( exp__ < 2118 ) then level2Lab = guiCreateLabel(430, 41, 214, 30, "Test Level 2", false, sWindow) guiLabelSetColor(level2Lab, 255, 255, 255) guiLabelSetHorizontalAlign(level2Lab, "center", true) guiLabelSetVerticalAlign(level2Lab, "center") end end ) [im use Castillo's Exp System] Where is the my mistake?
-
Im make a notice panel. But it's not work and not give error... Help me pls... local x,y = guiGetScreenSize() function mesaj( ) mesajGrid = guiCreateGridList((x/2)-212, (y/2)-112, 424, 224, false) guiSetAlpha(mesajGrid, 0.70) guiSetVisible(mesajGrid, false) editBox = guiCreateMemo(10, 10, 404, 72, "", false, mesajGrid) send = guiCreateButton(138, 173, 79, 26, "Gönder", false, mesajGrid) close = guiCreateButton(236, 173, 50, 26, "Kapat", false, mesajGrid) reklamLab = guiCreateLabel(138, 199, 148, 21, "Hubbub Games", false, mesajGrid) guiSetFont(reklamLab, "default-bold-small") guiLabelSetHorizontalAlign(reklamLab, "center", false) guiLabelSetVerticalAlign(reklamLab, "center") fontGrid = guiCreateGridList(10, 85, 118, 111, false, mesajGrid) guiGridListAddColumn(fontGrid, "Font", 0.7) font = { {"Bankgothic","bankgothic"}, {"Pricedown","pricedown"}, {"Diploma","diploma"}, {"Default-Bold","default-bold"}, } scaleGrid = guiCreateGridList(296, 85, 118, 111, false, mesajGrid) guiGridListAddColumn(scaleGrid, "Scale", 0.7) scale = { {"2.00",2.00}, {"1.50",1.50}, {"1.00",1.00}, {"0.9",0.90}, {"0.8",0.80}, {"0.7",0.70}, {"0.6",0.60}, {"0.5",0.50}, } fontTamam = guiCreateButton(10, 199, 118, 17, "Tamam", false, mesajGrid) boyutTamam = guiCreateButton(296, 199, 118, 17, "Tamam", false, mesajGrid) addEventHandler ( "onClientGUIClick", send, oyuncu, false ) end addEventHandler( "onClientResourceStart", getResourceRootElement( getThisResource( ) ), mesaj ) function oyuncu ( button ) if button == "left" then local text = guiGetText ( editBox ) local texts = dxDrawText("#f5fd00Notice: "..text, 10, 285, 790, 313, tocolor(255, 255, 255, 255), select2, select1, "center", "center", false, true, true, true, false) end end function fontList() guiGridListClear (fontGrid) for i,font in ipairs(font) do local row = guiGridListAddRow(fontGrid) guiGridListSetItemText(fontGrid, row, 1, tostring(font[1]), false, false) guiGridListSetItemData(fontGrid, row, 1, tostring(font[2])) end end function scaleList() guiGridListClear (scaleGrid) for i,scale in ipairs(scale) do local row = guiGridListAddRow(scaleGrid) guiGridListSetItemText(scaleGrid, row, 1, tostring(scale[1]), false, false) guiGridListSetItemData(scaleGrid, row, 1, tostring(scale[2])) end end function select1() if (source == fontTamam) then local row, col = guiGridListGetSelectedItem(fontGrid) if (row and col and row ~= -1 and col ~= -1) then local fonts = tonumber(guiGridListGetItemData(fontGrid, row, 1)) if model ~= "" then dxSetFont(texts, font) end end end end function select2() if (source == boyutTamam) then local row, col = guiGridListGetSelectedItem(scaleGrid) if (row and col and row ~= -1 and col ~= -1) then local scales = tonumber(guiGridListGetItemData(scaleGrid, row, 1)) if model ~= "" then dxSetSize(texts, scale) end end end end function mesajac() if (guiGetVisible (mesajGrid) == true) then guiSetVisible(mesajGrid, false) showCursor(false) elseif (guiGetVisible (mesajGrid) == false) then guiSetVisible(mesajGrid, true) showCursor(true) end end bindKey ("K", "down", mesajac) function close() if source == close then guiSetVisible ( mesajGrid,false ) showCursor(false) end end addEventHandler("onClientGUIClick", root, fontList) addEventHandler("onClientGUIClick", root, scaleList) addEventHandler("onClientGUIClick", root, close) addEventHandler("onClientGUIClick", root, select1) addEventHandler("onClientGUIClick", root, select2)