~Mr.Hassan Posted May 19, 2015 Share Posted May 19, 2015 Wellcome ..... انا معي كود نوافذ بس عملته وما يشتغل ممكن تشوفوه الكلينت --[[------------------------------------------------- Notes: > This code is using a relative image filepath. This will only work as long as the location it is from always exists, and the resource it is part of is running. To ensure it does not break, it is highly encouraged to move images into your local resource and reference them there. --]]------------------------------------------------- GUIEditor = { button = {}, window = {}, staticimage = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(275, 39, 288, 447, "[VIP] By....", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetAlpha(GUIEditor.window[1], 1.00) GUIEditor.staticimage[1] = guiCreateStaticImage(9, 17, 269, 420, "vip.png", false, GUIEditor.window[1]) GUIEditor.button[1] = guiCreateButton(8, 13, 78, 39, "infernus", false, GUIEditor.staticimage[1]) GUIEditor.button[2] = guiCreateButton(176, 13, 78, 39, "Bullet", false, GUIEditor.staticimage[1]) GUIEditor.button[3] = guiCreateButton(176, 124, 78, 39, "Maverick", false, GUIEditor.staticimage[1]) GUIEditor.button[4] = guiCreateButton(10, 124, 78, 39, "NRG-500", false, GUIEditor.staticimage[1]) GUIEditor.button[5] = guiCreateButton(6, 343, 78, 39, "FixCar", false, GUIEditor.staticimage[1]) GUIEditor.button[6] = guiCreateButton(6, 231, 78, 39, "King-Fo", false, GUIEditor.staticimage[1]) GUIEditor.button[7] = guiCreateButton(172, 343, 78, 39, "Nitro", false, GUIEditor.staticimage[1]) GUIEditor.button[8] = guiCreateButton(172, 231, 78, 39, "BOXING", false, GUIEditor.staticimage[1]) end ) addEventHandler("onClientRender", root, function() dxDrawLine(329, 127, 382, 134, tocolor(255, 255, 255, 255), 1, false) end ) addEventHandler ( "onClientGUIClick", root, function () if source == GUIEditor.Button[1] then triggerServerEvent("infernus",getLocalPlayer()) elseif source == GUIEditor.Button[2] then triggerServerEvent("Bullet",getLocalPlayer()) elseif source == GUIEditor.Button[3] then triggerServerEvent("Maverick",getLocalPlayer()) elseif source == GUIEditor.Button[4] then triggerServerEvent("NRG-500",getLocalPlayer()) elseif source == GUIEditor.Button[5] then triggerServerEvent("FixCar",getLocalPlayer()) elseif source == GUIEditor.Button[6] then triggerServerEvent("King-Fo",getLocalPlayer()) elseif source == GUIEditor.Button[7] then triggerServerEvent("Nitro",getLocalPlayer()) elseif source == GUIEditor.Button[8] then triggerServerEvent("BOXING",getLocalPlayer()) end end ) guiSetVisible(GUIEditor_Window[1],false) bindKey("F5","down", function ( ) guiSetVisible(GUIEditor_Window[1], not guiGetVisible(GUIEditor_Window[1])) showCursor(guiGetVisible(GUIEditor_Window[1])) Opens() end) سيرفر addEvent("infernus", true) addEventHandler("infernus", root, function ( ) local x, y, z = getElementPosition(source) local theVehicle = createVehicle(411, x, y, z) warpPedIntoVehicle(source, theVehicle) end ) function onEnter(player) if getPlayerSerial(player) ~= "CE9B891A0936F8CF35BE968F6900D283" then cancelEvent() end end --------------------------------------------------- addEvent("Bullet", true) addEventHandler("Bullet", root, function ( ) local x, y, z = getElementPosition(source) local theVehicle = createVehicle(541, x, y, z) warpPedIntoVehicle(source, theVehicle) end ) function onEnter(player) if getPlayerSerial(player) ~= "CE9B891A0936F8CF35BE968F6900D283" then cancelEvent() end end ----------------------------------------------------------------- addEvent("Maverick", true) addEventHandler("Maverick", root, function ( ) local x, y, z = getElementPosition(source) local theVehicle = createVehicle(487, x, y, z) warpPedIntoVehicle(source, theVehicle) end ) function onEnter(player) if getPlayerSerial(player) ~= "CE9B891A0936F8CF35BE968F6900D283" then cancelEvent() end end --------------------------------------------------------------- addEvent("Maverick", true) addEventHandler("Maverick", root, function ( ) local x, y, z = getElementPosition(source) local theVehicle = createVehicle(487, x, y, z) warpPedIntoVehicle(source, theVehicle) end ) function onEnter(player) if getPlayerSerial(player) ~= "CE9B891A0936F8CF35BE968F6900D283" then cancelEvent() end end ----------------------------------------------------------------- addEvent("NRG-500", true) addEventHandler("NRG-500", root, function ( ) local x, y, z = getElementPosition(source) local theVehicle = createVehicle(522, x, y, z) warpPedIntoVehicle(source, theVehicle) end ) function onEnter(player) if getPlayerSerial(player) ~= "CE9B891A0936F8CF35BE968F6900D283" then cancelEvent() end end ----------------------------------------------------------------- addEvent("FixCar", true) addEventHandler("FixCar", root, function (player) local veh = getPedOccupiedVehicle (player) if ( veh ) fixVehicle (veh) end end end ) -------------------------------------------------------------------- addEvent("King-Fo", true) addEventHandler("King-Fo", root, function ( ) if getElementType(player)=="player" then local style = setPlayerFightingStyle ( source, 6 ) end end end ) --------------------------------------- addEvent("BOXING", true) addEventHandler("BOXING", root, function ( ) if getElementType(player)=="player" then local style = setPlayerFightingStyle ( source, 4 ) end end end ) ---------------------------------------------------------- meta ... انا عم اعمل مود فيب لهيك عملت هذا الكود انه ما يركبه غير الي حاطط سيريالة function onEnter(player) if getPlayerSerial(player) ~= "CE9B891A0936F8CF35BE968F6900D283" then cancelEvent() end end Link to comment
i S6O Posted May 19, 2015 Share Posted May 19, 2015 جرب ديبوق سكربت مايقول شيء ذحين --ClientSide GUIEditor = { button = {}, window = {}, staticimage = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(275, 39, 288, 447, "[VIP] By....", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetAlpha(GUIEditor.window[1], 1.00) guiSetVisible(GUIEditor.window[1],false) GUIEditor.staticimage[1] = guiCreateStaticImage(9, 17, 269, 420, "vip.png", false, GUIEditor.window[1]) GUIEditor.button[1] = guiCreateButton(8, 13, 78, 39, "infernus", false, GUIEditor.staticimage[1]) GUIEditor.button[2] = guiCreateButton(176, 13, 78, 39, "Bullet", false, GUIEditor.staticimage[1]) GUIEditor.button[3] = guiCreateButton(176, 124, 78, 39, "Maverick", false, GUIEditor.staticimage[1]) GUIEditor.button[4] = guiCreateButton(10, 124, 78, 39, "NRG-500", false, GUIEditor.staticimage[1]) GUIEditor.button[5] = guiCreateButton(6, 343, 78, 39, "FixCar", false, GUIEditor.staticimage[1]) GUIEditor.button[6] = guiCreateButton(6, 231, 78, 39, "King-Fo", false, GUIEditor.staticimage[1]) GUIEditor.button[7] = guiCreateButton(172, 343, 78, 39, "Nitro", false, GUIEditor.staticimage[1]) GUIEditor.button[8] = guiCreateButton(172, 231, 78, 39, "BOXING", false, GUIEditor.staticimage[1]) end ) addEventHandler("onClientRender", root, function() dxDrawLine(329, 127, 382, 134, tocolor(255, 255, 255, 255), 1, false) end ) function onClickbuttons ( ) if source == GUIEditor.button[1] then triggerServerEvent("infernus",getLocalPlayer()) elseif source == GUIEditor.button[2] then triggerServerEvent("Bullet",getLocalPlayer()) elseif source == GUIEditor.button[3] then triggerServerEvent("Maverick",getLocalPlayer()) elseif source == GUIEditor.button[4] then triggerServerEvent("NRG-500",getLocalPlayer()) elseif source == GUIEditor.button[5] then triggerServerEvent("FixCar",getLocalPlayer()) elseif source == GUIEditor.button[6] then triggerServerEvent("King-Fo",getLocalPlayer()) elseif source == GUIEditor.button[7] then triggerServerEvent("Nitro",getLocalPlayer()) elseif source == GUIEditor.button[8] then triggerServerEvent("BOXING",getLocalPlayer()) end end addEventHandler ( "onClientGUIClick", root, onClickbuttons ) bindKey ( "F3", "down", function ( ) guiSetVisible ( GUIEditor.window[1], not guiGetVisible ( GUIEditor.window[1] ) ) showCursor ( guiGetVisible ( GUIEditor.window[1] ) ) end ) --ServerSide addEvent("infernus", true) addEventHandler("infernus", root, function ( ) local x, y, z = getElementPosition(source) local theVehicle = createVehicle(411, x, y, z) warpPedIntoVehicle(source, theVehicle) end ) function onEnter(player) if getPlayerSerial(player) ~= "CE9B891A0936F8CF35BE968F6900D283" then cancelEvent() end end --------------------------------------------------- addEvent("Bullet", true) addEventHandler("Bullet", root, function ( ) local x, y, z = getElementPosition(source) local theVehicle = createVehicle(541, x, y, z) warpPedIntoVehicle(source, theVehicle) end ) function onEnter(player) if getPlayerSerial(player) ~= "CE9B891A0936F8CF35BE968F6900D283" then cancelEvent() end end ----------------------------------------------------------------- addEvent("Maverick", true) addEventHandler("Maverick", root, function ( ) local x, y, z = getElementPosition(source) local theVehicle = createVehicle(487, x, y, z) warpPedIntoVehicle(source, theVehicle) end ) function onEnter(player) if getPlayerSerial(player) ~= "CE9B891A0936F8CF35BE968F6900D283" then cancelEvent() end end --------------------------------------------------------------- addEvent("Maverick", true) addEventHandler("Maverick", root, function ( ) local x, y, z = getElementPosition(source) local theVehicle = createVehicle(487, x, y, z) warpPedIntoVehicle(source, theVehicle) end ) function onEnter(player) if getPlayerSerial(player) ~= "CE9B891A0936F8CF35BE968F6900D283" then cancelEvent() end end ----------------------------------------------------------------- addEvent("NRG-500", true) addEventHandler("NRG-500", root, function ( ) local x, y, z = getElementPosition(source) local theVehicle = createVehicle(522, x, y, z) warpPedIntoVehicle(source, theVehicle) end ) function onEnter(player) if getPlayerSerial(player) ~= "CE9B891A0936F8CF35BE968F6900D283" then cancelEvent() end end ----------------------------------------------------------------- addEvent("FixCar", true) addEventHandler("FixCar", root, function (player) local veh = getPedOccupiedVehicle (player) if ( veh ) then fixVehicle (veh) end end ) -------------------------------------------------------------------- addEvent("King-Fo", true) addEventHandler("King-Fo", root, function ( ) if getElementType(player)=="player" then local style = setPlayerFightingStyle ( source, 6 ) end end ) --------------------------------------- addEvent("BOXING", true) addEventHandler("BOXING", root, function ( ) if getElementType(player)=="player" then local style = setPlayerFightingStyle ( source, 4 ) end end ) ---------------------------------------------------------- Link to comment
MoDeR2014 Posted May 19, 2015 Share Posted May 19, 2015 ركز بالميتا انت حاط حرف c كبير في type ما اعرف اذا له علاقه اولا بس جرب Link to comment
MoDeR2014 Posted May 19, 2015 Share Posted May 19, 2015 جرب تستبدل السيرفر بهذا --ServerSide addEvent("infernus", true) addEventHandler("infernus", root, function ( ) if getPlayerSerial(source) == "CE9B891A0936F8CF35BE968F6900D283" then local x, y, z = getElementPosition(source) local theVehicle = createVehicle(411, x, y, z) warpPedIntoVehicle(source, theVehicle) else outputChatBox("You Aren't the Vehicle Owner",source,255,0,0) end end ) --------------------------------------- addEvent("Bullet", true) addEventHandler("Bullet", root, function ( ) if getPlayerSerial(source) == "CE9B891A0936F8CF35BE968F6900D283" then local x, y, z = getElementPosition(source) local theVehicle = createVehicle(541, x, y, z) warpPedIntoVehicle(source, theVehicle) else outputChatBox("You Aren't the Vehicle Owner",source,255,0,0) end end ) --------------------------------------- addEvent("Maverick", true) addEventHandler("Maverick", root, function ( ) if getPlayerSerial(source) == "CE9B891A0936F8CF35BE968F6900D283" then local x, y, z = getElementPosition(source) local theVehicle = createVehicle(487, x, y, z) warpPedIntoVehicle(source, theVehicle) else outputChatBox("You Aren't the Vehicle Owner",source,255,0,0) end end ) --------------------------------------- addEvent("Maverick", true) addEventHandler("Maverick", root, function ( ) if getPlayerSerial(source) == "CE9B891A0936F8CF35BE968F6900D283" then local x, y, z = getElementPosition(source) local theVehicle = createVehicle(487, x, y, z) warpPedIntoVehicle(source, theVehicle) else outputChatBox("You Aren't the Vehicle Owner",source,255,0,0) end end ) --------------------------------------- addEvent("NRG-500", true) addEventHandler("NRG-500", root, function ( ) if getPlayerSerial(source) == "CE9B891A0936F8CF35BE968F6900D283" then local x, y, z = getElementPosition(source) local theVehicle = createVehicle(522, x, y, z) warpPedIntoVehicle(source, theVehicle) else outputChatBox("You Aren't the Vehicle Owner",source,255,0,0) end end ) --------------------------------------- addEvent("FixCar", true) addEventHandler("FixCar", root, function (player) if getPlayerSerial(player) == "CE9B891A0936F8CF35BE968F6900D283" then local veh = getPedOccupiedVehicle (player) if ( veh ) then fixVehicle (veh) end end end ) --------------------------------------- addEvent("King-Fo", true) addEventHandler("King-Fo", root, function (player) if getElementType(player)=="player" then if getPlayerSerial(player) == "CE9B891A0936F8CF35BE968F6900D283" then setPlayerFightingStyle ( source, 6 ) end end end ) --------------------------------------- addEvent("BOXING", true) addEventHandler("BOXING", root, function ( ) if getElementType(player)=="player" then if getPlayerSerial(player) == "CE9B891A0936F8CF35BE968F6900D283" then local style = setPlayerFightingStyle ( source, 4 ) end end end ) --------------------------------------- Link to comment
i S6O Posted May 19, 2015 Share Posted May 19, 2015 ركز بالميتا انت حاط حرف c كبير في type ما اعرف اذا له علاقه اولا بس جرب ماله علاقهه Link to comment
Mr.R Posted May 19, 2015 Share Posted May 19, 2015 (edited) #Client GUIEditor = { button = {}, window = {}, staticimage = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(275, 39, 288, 447, "[VIP] By....", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetAlpha(GUIEditor.window[1], 1.00) guiSetVisible ( GUIEditor.window[1], false ) GUIEditor.staticimage[1] = guiCreateStaticImage(9, 17, 269, 420, "vip.png", false, GUIEditor.window[1]) GUIEditor.button[1] = guiCreateButton(8, 13, 78, 39, "infernus", false, GUIEditor.window[1]) GUIEditor.button[2] = guiCreateButton(176, 13, 78, 39, "Bullet", false, GUIEditor.window[1]) GUIEditor.button[3] = guiCreateButton(176, 124, 78, 39, "Maverick", false, GUIEditor.window[1]) GUIEditor.button[4] = guiCreateButton(10, 124, 78, 39, "NRG-500", false, GUIEditor.window[1]) GUIEditor.button[5] = guiCreateButton(6, 343, 78, 39, "FixCar", false, GUIEditor.window[1]) GUIEditor.button[6] = guiCreateButton(6, 231, 78, 39, "King-Fo", false, GUIEditor.window[1]) GUIEditor.button[7] = guiCreateButton(172, 343, 78, 39, "Nitro", false, GUIEditor.window[1]) GUIEditor.button[8] = guiCreateButton(172, 231, 78, 39, "BOXING", false, GUIEditor.window[1]) end ) bindKey ( "F5", "down", function ( ) guiSetVisible ( GUIEditor_window[1], not guiGetVisible ( GUIEditor_window[1] ) ) showCursor ( guiGetVisible ( GUIEditor_window[1] ) ) end ) addEventHandler ( "onClientRender", root, function ( ) dxDrawLine ( 329, 127, 382, 134, tocolor( 255, 255, 255, 255 ), 1, false) end ) addEventHandler ( "onClientGUIClick", root, function ( ) if ( source == GUIEditor.Button[1] ) then triggerServerEvent ( "infernus", localPlayer ) elseif ( source == GUIEditor.Button[2] ) then triggerServerEvent ( "Bullet", localPlayer ) elseif ( source == GUIEditor.Button[3] ) then triggerServerEvent ( "Maverick", localPlayer ) elseif ( source == GUIEditor.Button[4] ) then triggerServerEvent ( "NRG-500", localPlayer ) elseif ( source == GUIEditor.Button[5] ) then triggerServerEvent ( "FixCar", localPlayer ) elseif ( source == GUIEditor.Button[6] ) then triggerServerEvent ( "King-Fo", localPlayer ) elseif ( source == GUIEditor.Button[7] ) then triggerServerEvent ( "Nitro", localPlayer ) elseif ( source == GUIEditor.Button[8] ) then triggerServerEvent ( "BOXING", localPlayer) end end ) #Server addEvent ( "infernus", true ) addEventHandler ( "infernus", root, function ( ) local x, y, z = getElementPosition ( source ) local theVehicle = createVehicle ( 411, x, y, z ) if getPlayerSerial ( source ) == "CE9B891A0936F8CF35BE968F6900D283" then warpPedIntoVehicle ( source, theVehicle ) else outputChatBox ( "Special properties for the Vip's", source, 255, 0, 0, true ) end end ) addEvent ( "Bullet", true ) addEventHandler ( "Bullet", root, function ( ) local x, y, z = getElementPosition ( source ) local theVehicle = createVehicle ( 541, x, y, z ) if getPlayerSerial ( source ) == "CE9B891A0936F8CF35BE968F6900D283" then warpPedIntoVehicle ( source, theVehicle ) else outputChatBox ( "Special properties for the Vip's", source, 255, 0, 0, true ) end end ) addEvent ( "Maverick", true ) addEventHandler ( "Maverick", root, function ( ) local x, y, z = getElementPosition ( source ) local theVehicle = createVehicle ( 487, x, y, z ) if getPlayerSerial ( source ) == "CE9B891A0936F8CF35BE968F6900D283" then warpPedIntoVehicle ( source, theVehicle ) else outputChatBox ( "Special properties for the Vip's", source, 255, 0, 0, true ) end end ) addEvent ( "Maverick", true ) addEventHandler ( "Maverick", root, function ( ) local x, y, z = getElementPosition(source) local theVehicle = createVehicle(487, x, y, z) if getPlayerSerial ( source ) == "CE9B891A0936F8CF35BE968F6900D283" then warpPedIntoVehicle ( source, theVehicle ) else outputChatBox ( "Special properties for the Vip's", source, 255, 0, 0, true ) end end ) addEvent ( "NRG-500", true ) addEventHandler ( "NRG-500", root, function ( ) local x, y, z = getElementPosition ( source ) local theVehicle = createVehicle ( 522, x, y, z ) if getPlayerSerial ( source ) == "CE9B891A0936F8CF35BE968F6900D283" then warpPedIntoVehicle ( source, theVehicle ) else outputChatBox ( "Special properties for the Vip's", source, 255, 0, 0, true ) end end ) addEvent ( "FixCar", true ) addEventHandler ( "FixCar", root, function ( ) if getPlayerSerial ( source ) == "CE9B891A0936F8CF35BE968F6900D283" then local Vehicle = getPedOccupiedVehicle ( source ) if ( Vehicle ) then fixVehicle ( Vehicle ) outputChatBox ( "The vehicle was repaired successfully", source, 255, 0, 0, true ) end end end ) addEvent ( "King-Fo", true ) addEventHandler ( "King-Fo", root, function ( ) if getElementType ( source ) == "player" then if getPlayerSerial ( source ) == "CE9B891A0936F8CF35BE968F6900D283" then setPlayerFightingStyle ( source, 6 ) outputChatBox ( "Been given supernatural abilities", source, 255, 0, 0, true ) end end end ) addEvent ( "BOXING", true ) addEventHandler ( "BOXING", root, function ( ) if getElementType (source ) == "player" then if getPlayerSerial ( source ) == "CE9B891A0936F8CF35BE968F6900D283" then setPlayerFightingStyle ( source, 4 ) outputChatBox ( "Been given supernatural abilities", source, 255, 0, 0, true ) end end end ) #meta < info author="Professional" version="1.0" type="script" name="VipPanel"/> < script src="Client.lua" type="client" /> < script src="Server.lua" type="server" /> < file src="vip.png" /> Edited May 19, 2015 by Guest Link to comment
i S6O Posted May 19, 2015 Share Posted May 19, 2015 'Mr.R' ? =>GUIEditor_Window[1] and Here ?bindKey ( "F5", "down", function ( ) guiSetVisible ( GUIEditor_Window[1], not guiGetVisible ( GUIEditor_Window[1] ) ) showCursor ( guiGetVisible ( GUIEditor_Window[1] ) ) end ) ? => GUIEditor.window[1] = guiCreateWindow(275, 39, 288, 447, "[VIP] By....", false) Link to comment
~Mr.Hassan Posted May 19, 2015 Author Share Posted May 19, 2015 'Mr.R' ? =>GUIEditor_Window[1] and Here ?bindKey ( "F5", "down", function ( ) guiSetVisible ( GUIEditor_Window[1], not guiGetVisible ( GUIEditor_Window[1] ) ) showCursor ( guiGetVisible ( GUIEditor_Window[1] ) ) end ) ? => GUIEditor.window[1] = guiCreateWindow(275, 39, 288, 447, "[VIP] By....", false) انت قاعد شو تعمل تنسخ الكلام وتضحك Link to comment
The Killer Posted May 19, 2015 Share Posted May 19, 2015 ما يشتغل كيف يعني وش مشكلته وش يصير يوم تشغله /debugscript Link to comment
~Mr.Hassan Posted May 19, 2015 Author Share Posted May 19, 2015 السكربت ما فيه ولا غلط بس هو ما يشتغل Link to comment
i S6O Posted May 19, 2015 Share Posted May 19, 2015 --ClientSide GUIEditor = { button = {}, window = {}, staticimage = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(275, 39, 288, 447, "[VIP] By....", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetAlpha(GUIEditor.window[1], 1.00) guiSetVisible(GUIEditor.window[1],false) GUIEditor.staticimage[1] = guiCreateStaticImage(9, 17, 269, 420, "vip.png", false, GUIEditor.window[1]) GUIEditor.button[1] = guiCreateButton(8, 13, 78, 39, "infernus", false, GUIEditor.staticimage[1]) GUIEditor.button[2] = guiCreateButton(176, 13, 78, 39, "Bullet", false, GUIEditor.staticimage[1]) GUIEditor.button[3] = guiCreateButton(176, 124, 78, 39, "Maverick", false, GUIEditor.staticimage[1]) GUIEditor.button[4] = guiCreateButton(10, 124, 78, 39, "NRG-500", false, GUIEditor.staticimage[1]) GUIEditor.button[5] = guiCreateButton(6, 343, 78, 39, "FixCar", false, GUIEditor.staticimage[1]) GUIEditor.button[6] = guiCreateButton(6, 231, 78, 39, "King-Fo", false, GUIEditor.staticimage[1]) GUIEditor.button[7] = guiCreateButton(172, 343, 78, 39, "Nitro", false, GUIEditor.staticimage[1]) GUIEditor.button[8] = guiCreateButton(172, 231, 78, 39, "BOXING", false, GUIEditor.staticimage[1]) end ) addEventHandler("onClientRender", root, function() dxDrawLine(329, 127, 382, 134, tocolor(255, 255, 255, 255), 1, false) end ) function onClickbuttons ( ) if source == GUIEditor.button[1] then triggerServerEvent("infernus",getLocalPlayer()) elseif source == GUIEditor.button[2] then triggerServerEvent("Bullet",getLocalPlayer()) elseif source == GUIEditor.button[3] then triggerServerEvent("Maverick",getLocalPlayer()) elseif source == GUIEditor.button[4] then triggerServerEvent("NRG-500",getLocalPlayer()) elseif source == GUIEditor.button[5] then triggerServerEvent("FixCar",getLocalPlayer()) elseif source == GUIEditor.button[6] then triggerServerEvent("King-Fo",getLocalPlayer()) elseif source == GUIEditor.button[7] then triggerServerEvent("Nitro",getLocalPlayer()) elseif source == GUIEditor.button[8] then triggerServerEvent("BOXING",getLocalPlayer()) end end addEventHandler ( "onClientGUIClick", root, onClickbuttons ) bindKey ( "F3", "down", function ( ) guiSetVisible ( GUIEditor.window[1], not guiGetVisible ( GUIEditor.window[1] ) ) showCursor ( guiGetVisible ( GUIEditor.window[1] ) ) end ) --ServerSide addEvent("infernus", true) addEventHandler("infernus", root, function ( ) local x, y, z = getElementPosition(source) local theVehicle = createVehicle(411, x, y, z) warpPedIntoVehicle(source, theVehicle) end ) function onEnter(player) if getPlayerSerial(player) ~= "CE9B891A0936F8CF35BE968F6900D283" then cancelEvent() end end --------------------------------------------------- addEvent("Bullet", true) addEventHandler("Bullet", root, function ( ) local x, y, z = getElementPosition(source) local theVehicle = createVehicle(541, x, y, z) warpPedIntoVehicle(source, theVehicle) end ) function onEnter(player) if getPlayerSerial(player) ~= "CE9B891A0936F8CF35BE968F6900D283" then cancelEvent() end end ----------------------------------------------------------------- addEvent("Maverick", true) addEventHandler("Maverick", root, function ( ) local x, y, z = getElementPosition(source) local theVehicle = createVehicle(487, x, y, z) warpPedIntoVehicle(source, theVehicle) end ) function onEnter(player) if getPlayerSerial(player) ~= "CE9B891A0936F8CF35BE968F6900D283" then cancelEvent() end end --------------------------------------------------------------- addEvent("Maverick", true) addEventHandler("Maverick", root, function ( ) local x, y, z = getElementPosition(source) local theVehicle = createVehicle(487, x, y, z) warpPedIntoVehicle(source, theVehicle) end ) function onEnter(player) if getPlayerSerial(player) ~= "CE9B891A0936F8CF35BE968F6900D283" then cancelEvent() end end ----------------------------------------------------------------- addEvent("NRG-500", true) addEventHandler("NRG-500", root, function ( ) local x, y, z = getElementPosition(source) local theVehicle = createVehicle(522, x, y, z) warpPedIntoVehicle(source, theVehicle) end ) function onEnter(player) if getPlayerSerial(player) ~= "CE9B891A0936F8CF35BE968F6900D283" then cancelEvent() end end ----------------------------------------------------------------- addEvent("FixCar", true) addEventHandler("FixCar", root, function (player) local veh = getPedOccupiedVehicle (player) if ( veh ) then fixVehicle (veh) end end ) -------------------------------------------------------------------- addEvent("King-Fo", true) addEventHandler("King-Fo", root, function ( ) if getElementType(player)=="player" then local style = setPlayerFightingStyle ( source, 6 ) end end ) --------------------------------------- addEvent("BOXING", true) addEventHandler("BOXING", root, function ( ) if getElementType(player)=="player" then local style = setPlayerFightingStyle ( source, 4 ) end end ) ---------------------------------------------------------- انا مجربه الي فوق بس الي مايشتغل حق نيترو و تصليح السيارة Link to comment
Mr.R Posted May 19, 2015 Share Posted May 19, 2015 الزر ما يشتغل كان عندي غلط بحرف واحد وعلمني عليه ابوعابد وصلحت الكود فوق جربه جربه ماشوف فيه اي خطأ GUIEditor = { button = {}, window = {}, staticimage = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(275, 39, 288, 447, "[VIP] By....", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetAlpha(GUIEditor.window[1], 1.00) guiSetVisible ( GUIEditor.window[1], false ) GUIEditor.staticimage[1] = guiCreateStaticImage(9, 17, 269, 420, "vip.png", false, GUIEditor.window[1]) GUIEditor.button[1] = guiCreateButton(8, 13, 78, 39, "infernus", false, GUIEditor.window[1]) GUIEditor.button[2] = guiCreateButton(176, 13, 78, 39, "Bullet", false, GUIEditor.window[1]) GUIEditor.button[3] = guiCreateButton(176, 124, 78, 39, "Maverick", false, GUIEditor.window[1]) GUIEditor.button[4] = guiCreateButton(10, 124, 78, 39, "NRG-500", false, GUIEditor.window[1]) GUIEditor.button[5] = guiCreateButton(6, 343, 78, 39, "FixCar", false, GUIEditor.window[1]) GUIEditor.button[6] = guiCreateButton(6, 231, 78, 39, "King-Fo", false, GUIEditor.window[1]) GUIEditor.button[7] = guiCreateButton(172, 343, 78, 39, "Nitro", false, GUIEditor.window[1]) GUIEditor.button[8] = guiCreateButton(172, 231, 78, 39, "BOXING", false, GUIEditor.window[1]) end ) bindKey ( "F5", "down", function ( ) guiSetVisible ( GUIEditor_window[1], not guiGetVisible ( GUIEditor_window[1] ) ) showCursor ( guiGetVisible ( GUIEditor_window[1] ) ) end ) addEventHandler ( "onClientRender", root, function ( ) dxDrawLine ( 329, 127, 382, 134, tocolor( 255, 255, 255, 255 ), 1, false) end ) addEventHandler ( "onClientGUIClick", root, function ( ) if ( source == GUIEditor.Button[1] ) then triggerServerEvent ( "infernus", localPlayer ) elseif ( source == GUIEditor.Button[2] ) then triggerServerEvent ( "Bullet", localPlayer ) elseif ( source == GUIEditor.Button[3] ) then triggerServerEvent ( "Maverick", localPlayer ) elseif ( source == GUIEditor.Button[4] ) then triggerServerEvent ( "NRG-500", localPlayer ) elseif ( source == GUIEditor.Button[5] ) then triggerServerEvent ( "FixCar", localPlayer ) elseif ( source == GUIEditor.Button[6] ) then triggerServerEvent ( "King-Fo", localPlayer ) elseif ( source == GUIEditor.Button[7] ) then triggerServerEvent ( "Nitro", localPlayer ) elseif ( source == GUIEditor.Button[8] ) then triggerServerEvent ( "BOXING", localPlayer) end end ) واذا فيه خطأ ف الكود شف الديبوق وش يقول وعطني خبر Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now