
Fox261098
Members-
Posts
83 -
Joined
-
Last visited
Everything posted by Fox261098
-
Hello i made an gui but it doesnt open can somone teach me how to find errors. code GUIEditor = { button = {}, window = {} } addEventHandler("onClientResourceStart", resourceRoot, function(gui) GUIEditor.window[1] = guiCreateWindow(424, 489, 942, 252, "Skin Panel 1.0 Beta1", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.button[1] = guiCreateButton(24, 38, 173, 55, "Crysis Nanosuit", false, GUIEditor.window[1]) GUIEditor.button[2] = guiCreateButton(745, 41, 173, 55, "Crysis Nanosuit", false, GUIEditor.window[1]) GUIEditor.button[3] = guiCreateButton(385, 41, 173, 55, "Crysis Nanosuit", false, GUIEditor.window[1]) addCommandHandler ("panel", gui) --- Events addEventHandler("onClientGUIClick", GUIEditor.button[1], skin1, false) addEventHandler("onClientGUIClick", GUIEditor.button[2], skin2, false) addEventHandler("onClientGUIClick", GUIEditor.button[3], skin3, false) end) addEventHandler("onClientRender", root, function() dxDrawText("Skin Panely by LuckyDude", 506, 374, 825, 431, tocolor(6, 248, 6, 255), 3.00, "pricedown", "left", "top", false, false, false, false, false) dxDrawLine(469, 464, 1338, 463, tocolor(39, 12, 241, 255), 5, false) end ) function skin1 () nanosuitTXD = engineLoadTXD("nanosuit.txd") engineImportTXD(nanosuitTXD, 23 ) nanosuitDFF = engineLoadDFF("nanosuit.dff") engineReplaceModel(nanosuitDFF, 23) end end function skin2 () anonymousTXD = engineLoadTXD("anonymous.txd") engineImportTXD(anonymousTXD, 24 ) anonymousDFF = engineLoadDFF("anonymous.dff") engineReplaceModel(anonymousDFF, 24) end end function skin3 () screamTXD = engineLoadTXD("scream.txd") engineImportTXD(screamTXD, 25 ) screamDFF = engineLoadDFF("scream.dff") engineReplaceModel(screamDFF, 25) end end
-
It cant find the resource
-
this is the error http://www.pic-upload.de/view-30663094/ ... 5.png.html
-
I made another guy but again not showing and its client side GUIEditor = {button = {},window = {},edit = {}} Show = {} addEventHandler("onClientResourceStart", resourceRoot, function(skingui) GUIEditor.window[1] = guiCreateWindow(620, 648, 750, 120, "Skin Panel 1.0", false) guiWindowSetMovable(GUIEditor.window[1], false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetAlpha(GUIEditor.window[1], 1.00) GUIEditor.button[1] = guiCreateButton(10, 36, 202, 68, "Crysis Nanosuit", false, GUIEditor.window[1]) GUIEditor.button[2] = guiCreateButton(533, 36, 202, 68, "Anonymous", false, GUIEditor.window[1]) GUIEditor.button[3] = guiCreateButton(265, 36, 202, 68, "Scream", false, GUIEditor.window[1]) addCommandHandler ("spanel", skingui) guiSetVisible (GUIEditor.window[1], false) --- Events addEventHandler("onClientGUIClick", GUIEditor.button[1], skin1, false) addEventHandler("onClientGUIClick", GUIEditor.button[2], skin2 , false) addEventHandler("onClientGUIClick", GUIEditor.button[3], skin3, false) end addEventHandler("onClientRender", root, function() dxDrawText("Skin Panel", 836, 561, 1326, 638, tocolor(31, 245, 8, 255), 3.00, "bankgothic", "left", "top", false, false, false, false, false) dxDrawLine(841, 638, 1366, 638, tocolor(29, 13, 241, 255), 5, false) end ) function skin1 () skin1 = engineLoadTXD("nanosuit.txd") engineImportTXD(skin1, 23 ) skin2 = engineLoadDFF("nanosuit.dff") engineImportDFF(skin1, 23) end function skin2 () skin2 = engineLoadTXD("anonymous.txd") engineImportTXD(skin1, 24 ) skin2 = engineLoadDFF("anonymous.dff") engineImportDFF(skin1, 24) end function skin3 () skin3 = engineLoadTXD("scream.txd") engineImportTXD(skin1, 25 ) skin3 = engineLoadDFF("scream.dff") engineImportDFF(skin1, 25) end meta "LuckyDude" version="1.0" type="script" description="panel for skins" />
-
Nothing again... This code Edited by Oskar should work.. make sure you write /mini and not /Mini Man i said the gui is not showing up
-
There arent errors now but gui is not openning
-
When i type /mini nothing happens
-
Hello i made an mini script but it shows me some errors like Ban Argument addEventHandler and how to bind key to open gui?.Here is the code GUIEditor = { button = {}, window = {}, edit = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(0, 4, 544, 413, "Mini admin panel.By LuckyDude", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetProperty(GUIEditor.window[1], "CaptionColour", "FF7F7F7F") GUIEditor.edit[1] = guiCreateEdit(9, 266, 510, 126, "This is a new mini adminpanel.Made by LuckyDude", false, GUIEditor.window[1]) GUIEditor.button[1] = guiCreateButton(15, 29, 242, 82, "Flip Vehicle", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[1], "sa-header") GUIEditor.button[2] = guiCreateButton(15, 183, 242, 73, "Fix Vehicle", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[2], "sa-header") GUIEditor.button[3] = guiCreateButton(282, 29, 242, 73, "50k Money", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[3], "sa-header") GUIEditor.button[5] = guiCreateButton(287, 183, 242, 73, "10k Money", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[5], "sa-header") end addCommandHandler ("mini",gui) ) addEventHandler("onClientRender", root, function() dxDrawText("Race Admin Panel", 60, 431, 501, 574, tocolor(0, 0, 0, 255), 2.00, "pricedown", "left", "top", false, false, false, false, false) dxDrawLine(60, 495, 435, 495, tocolor(60, 251, 16, 255), 4, false) end ) function flip ( ) local theVehicle = getPedOccupiedVehicle ( localPlayer ) if ( theVehicle and getVehicleController ( theVehicle ) == localPlayer ) then local rx, ry, rz = getVehicleRotation ( theVehicle ) if ( rx > 110 ) and ( rx < 250 ) then local x, y, z = getElementPosition ( theVehicle ) setVehicleRotation ( theVehicle, rx + 180, ry, rz ) setElementPosition ( theVehicle, x, y, z + 2 ) end end end addEventHandler("onClientGUIClick", GUIEditor.button[1], flip, false) function fix (playerSource) local theVehicle = getPedOccupiedVehicle (playerSource) if theVehicle and getVehicleController ( theVehicle ) == playerSource then fixVehicle (theVehicle) outputChatBox ("Your vehicle has been fixed !" , thePlayer) end end addEventHandler("onClientGUIClick", GUIEditor.button[2], fix, false) function consoleGiveCash ( thePlayer, command, amount ) givePlayerMoney ( thePlayer, 50000 ) end addEventHandler("onClientGUIClick", GUIEditor.button[3], consoleGiveCash, false) function consoleGiveCash2 ( thePlayer, command, amount ) givePlayerMoney ( thePlayer, 10000 ) end addEventHandler("onClientGUIClick", GUIEditor.button[3], consoleGiveCash2, false)
-
Hello i made an gui with some buttons but i dont know how to add functions to that buttons.Pls can somone put it in this code GUIEditor = { button = {}, window = {}, edit = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(0, 4, 544, 413, "Mini admin panel.By LuckyDude", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetProperty(GUIEditor.window[1], "CaptionColour", "FF7F7F7F") GUIEditor.edit[1] = guiCreateEdit(9, 266, 510, 126, "This is a new mini adminpanel.Made by LuckyDude", false, GUIEditor.window[1]) GUIEditor.button[1] = guiCreateButton(15, 29, 242, 82, "Flip Vehicle", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[1], "sa-header") GUIEditor.button[2] = guiCreateButton(15, 183, 242, 73, "Fix Vehicle", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[2], "sa-header") GUIEditor.button[3] = guiCreateButton(282, 29, 242, 73, "50k Money", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[3], "sa-header") GUIEditor.button[4] = guiCreateButton(282, 29, 242, 73, "50k Money", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[4], "sa-header") GUIEditor.button[5] = guiCreateButton(287, 183, 242, 73, "10k Money", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[5], "sa-header") end addCommandHandler ("mini",gui) ) addEventHandler("onClientRender", root, function() dxDrawText("Race Admin Panel", 60, 431, 501, 574, tocolor(0, 0, 0, 255), 2.00, "pricedown", "left", "top", false, false, false, false, false) dxDrawLine(60, 495, 435, 495, tocolor(60, 251, 16, 255), 4, false) end )
-
Hello MTA I made an door opening and i put it on dayz but everyone can open it with that command how to add just one group can use it.. Im using the regular dayz group system witch comes with dayz Code: local gate = createObject ( 10828, 276.60000610352, 2503.3000488281, 28.10000038147, 0, 0, 90 ) local state = 0 function move(player) if state == 0 then moveObject ( gate, 4000, 276.5, 2537.1999511719, 28.10000038147) state = state + 1 elseif state == 1 then moveObject ( gate, 4000, 276.60000610352, 2503.3000488281, 28.10000038147) state = state - 1 end end end addCommandHandler("gate", move )
-
Anyway you don't know how to make anything. So guys please close this thread, it cannot be solved. Hey now, that's not very nice. He's as entitled to getting help here as anyone else is. Blue Pie's would work but he made a mistake, getPlayerTeam returns a team element, not a team name. The fix is simple, use getTeamName to check if the name of the team matches. local gate = createObject(10828, 276.60000610352, 2503.3000488281, 28.10000038147, 0, 0, 90) local state = 0 local theTeam = "TeamName" function move() if(getTeamName(getPlayerTeam(localPlayer)) == theTeam) then if(state == 0) then moveObject(gate, 4000, 276.5, 2537.1999511719, 28.10000038147) state = 1 elseif(state == 1) then moveObject(gate, 4000, 276.60000610352, 2503.3000488281, 28.10000038147) state = 0 end else outputChatBox("#BB0000You're not allowed to open this gate!", 0, 0, 0, true) end end addCommandHandler("gate", move) You'll also want to use Debugging to see what kind of warnings and/or errors you are receiving. It will help you fix them yourself and help us help you faster. Ty man i fix it you the best :DD
-
i dont need ill try to make it alone
-
ye i know but i dont know how to make it so i asked somone has a good heart
-
Hey guys can somone make me script like this http://i.imgur.com/6LnrMO8.png and if somone shoots u u cant get killed i dont know to make that kind a scripts so if somone has time to make it Ty
-
Im asking how to make on that gate script only team members from the group can open the door