z24d Posted August 6, 2015 Author Share Posted August 6, 2015 debugscript 3 لبااااا انت يشيخ تم الحل Link to comment
z24d Posted August 6, 2015 Author Share Posted August 6, 2015 addEvent ( "Mini", true ) addEventHandler ( "Mini", root, function ( ) outputChatBox("* You have successfully Gived Minigun", source, 0, 255, 0) givePedWeapon(source, 38, 400, true) end) addEvent ( "Rocket", true ) addEventHandler ( "Rocket", root, function ( ) outputChatBox("* You have successfully Gived Rocket Launchers", source, 0, 255, 0) givePedWeapon ( source, 35 ,20, false) end) addEvent ( "RocketH", true ) addEventHandler ( "RocketH", root, function ( ) outputChatBox("* You have successfully Gived Heat-Seeking RPG", source, 0, 255, 0) givePedWeapon(source, 36, 20, true) end) معليش ض اخر مره والله وش الغلط الديبوق [16:06:02] ERROR: kkdd\server.lua:54: attempt to call global 'givePedWeapon' (a nil value) * You have successfully Gived Mini [16:06:08] ERROR: kkdd\server.lua:66: attempt to call global 'givePedWeapon' (a nil value) * You have successfully Gived Heat-Seeking RPG [16:06:08] ERROR: kkdd\server.lua:60: attempt to call global 'givePedWeapon' (a nil value) * You have successfully Gived Rocket Launchers Link to comment
iMr.SFA7 Posted August 6, 2015 Share Posted August 6, 2015 الخطأ الفنكشن givePedWeapon موب موجود أستخدم giveWeapon Link to comment
z24d Posted August 6, 2015 Author Share Posted August 6, 2015 الخطأ الفنكشن givePedWeapon موب موجود أستخدم giveWeapon يعطيك العافية اخوي ابي اشفر كم مود شلون؟ Link to comment
iMr.SFA7 Posted August 6, 2015 Share Posted August 6, 2015 https://luac.multitheftauto.com Link to comment
z24d Posted August 6, 2015 Author Share Posted August 6, 2015 https://luac.multitheftauto.com معليش تعبتك معي بس شوف وين الغلط ابي الوحة تفتح للVIP فقط الكود addEvent ( "VIP", true ) addEventHandler ( "VIP", root, function ( ) if ( getPlayerAccount ( player ) and not isGuestAccount ( getPlayerAccount ( player ) ) ) then if not ( isObjectInACLGroup ( "user."..getAccountName ( getPlayerAccount ( player ) ), aclGetGroup( "VIP" ) ) ) then return end end end) Link to comment
iMr.SFA7 Posted August 6, 2015 Share Posted August 6, 2015 أطرح كود فتح النافذة بالكلنت ! ذذ Link to comment
z24d Posted August 6, 2015 Author Share Posted August 6, 2015 أطرح كود فتح النافذة بالكلنت ! ذذ GUIEditor = { button = {}, window = {}, label = {} } GUIEditor.window[1] = guiCreateWindow(336, 137, 402, 480, "VIP Panel", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.button[1] = guiCreateButton(22, 62, 155, 57, "Create Vehicle", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[1], "default-bold-small") guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA") GUIEditor.button[2] = guiCreateButton(218, 62, 155, 57, "No Veh Dmg", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[2], "default-bold-small") guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFAAAAAA") GUIEditor.button[3] = guiCreateButton(218, 167, 155, 57, "VIP Stats", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[3], "default-bold-small") guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFAAAAAA") GUIEditor.button[4] = guiCreateButton(22, 167, 155, 57, "VIP Weapons", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[4], "default-bold-small") guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FFAAAAAA") GUIEditor.button[5] = guiCreateButton(22, 268, 155, 57, "VIP Skin", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[5], "default-bold-small") guiSetProperty(GUIEditor.button[5], "NormalTextColour", "FFAAAAAA") GUIEditor.button[6] = guiCreateButton(218, 268, 155, 57, "Health/Armor", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[6], "default-bold-small") guiSetProperty(GUIEditor.button[6], "NormalTextColour", "FFAAAAAA") GUIEditor.button[7] = guiCreateButton(76, 342, 233, 70, "Close VIP Panel", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[7], "default-bold-small") guiSetProperty(GUIEditor.button[7], "NormalTextColour", "FFAAAAAA") GUIEditor.label[1] = guiCreateLabel(17, 440, 150, 30, "Created By #Monster ,", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[1], "clear-normal") guiLabelSetColor(GUIEditor.label[1], 255, 0, 0) guiSetVisible(GUIEditor.window[1],false) bindKey ( "F5", "down", function ( ) triggerServerEvent("VIP",localPlayer) guiSetVisible ( GUIEditor.window[1], not guiGetVisible ( GUIEditor.window[1] ) ) showCursor ( guiGetVisible ( GUIEditor.window[1] ) ) end ) addEventHandler ( "onClientGUIClick", resourceRoot, function ( ) if ( source == GUIEditor.button[1] ) then triggerServerEvent ( "GiveCar", localPlayer ) end end ) CarDamage = true addEventHandler('onClientGUIClick',root, function ( ) if ( source == GUIEditor.button[2] ) then if ( getPedOccupiedVehicle ( localPlayer ) ) then CarDamage = not CarDamage setVehicleDamageProof(getPedOccupiedVehicle ( localPlayer ) , CarDamage ) end end end ) addEventHandler ( "onClientGUIClick", resourceRoot, function ( ) if ( source == GUIEditor.button[3] ) then triggerServerEvent ( "GiveStat", localPlayer ) end end ) addEventHandler ( "onClientGUIClick", resourceRoot, function ( ) if ( source == GUIEditor.button[5] ) then triggerServerEvent ( "GiveSkin", localPlayer ) end end ) addEventHandler ( "onClientGUIClick", resourceRoot, function ( ) if ( source == GUIEditor.button[6] ) then triggerServerEvent ( "GiveArmor", localPlayer ) end end ) addEventHandler ( "onClientGUIClick", resourceRoot, function ( ) if ( source == GUIEditor.button[7] ) then guiSetVisible(GUIEditor.window[1],false) showCursor(false) if guiGetVisible(GUIEditor.window[1]) == true then guiSetVisible(GUIEditor.window[2],false) end end end ) addEventHandler ( "onClientGUIClick", resourceRoot, function ( ) if ( source == GUIEditor.button[4] ) then guiSetVisible ( GUIEditor.window[2], not guiGetVisible ( GUIEditor.window[2] ) ) end end ) GUIEditor.window[2] = guiCreateWindow(163, 191, 170, 231, "VIP Weapons Panel", false) guiWindowSetSizable(GUIEditor.window[2], false) GUIEditor.button[17] = guiCreateButton(18, 35, 136, 45, "Minigun,400", false, GUIEditor.window[2]) guiSetFont(GUIEditor.button[17], "default-bold-small") guiSetProperty(GUIEditor.button[17], "NormalTextColour", "FFAAAAAA") GUIEditor.button[18] = guiCreateButton(18, 86, 136, 45, "Rocket Launcher,20", false, GUIEditor.window[2]) guiSetFont(GUIEditor.button[18], "default-bold-small") guiSetProperty(GUIEditor.button[18], "NormalTextColour", "FFAAAAAA") GUIEditor.button[19] = guiCreateButton(18, 141, 136, 45, "Heat-Seeking RPG,20", false, GUIEditor.window[2]) guiSetFont(GUIEditor.button[19], "default-bold-small") guiSetProperty(GUIEditor.button[19], "NormalTextColour", "FFAAAAAA") lbl = guiCreateLabel(59, 195, 65, 15, "Close Panel", false, GUIEditor.window[2]) guiSetFont(lbl, "default-bold-small") guiLabelSetColor(lbl, 0, 24, 254) guiSetVisible(GUIEditor.window[2],false) addEventHandler ( "onClientGUIClick", resourceRoot, function ( ) if ( source == lbl ) then guiSetVisible ( GUIEditor.window[2],false ) end end ) function Colo() if ( source == lbl ) then guiLabelSetColor(lbl, 255, 255, 255) end end addEventHandler( "onClientMouseEnter", getRootElement(),Colo) function Colo1() if ( source == lbl ) then guiLabelSetColor(lbl, 0, 24, 254) end end addEventHandler( "onClientMouseLeave", getRootElement(),Colo1) addEventHandler ( "onClientGUIClick", resourceRoot, function ( ) if ( source == GUIEditor.button[17] ) then triggerServerEvent ( "Mini", localPlayer ) end end ) addEventHandler ( "onClientGUIClick", resourceRoot, function ( ) if ( source == GUIEditor.button[18] ) then triggerServerEvent ( "Rocket", localPlayer ) end end ) addEventHandler ( "onClientGUIClick", resourceRoot, function ( ) if ( source == GUIEditor.button[19] ) then triggerServerEvent ( "RocketH", localPlayer ) end end ) تفضل خيو Link to comment
iMr.SFA7 Posted August 6, 2015 Share Posted August 6, 2015 GUIEditor = { button = {}, window = {}, label = {} } GUIEditor.window[1] = guiCreateWindow(336, 137, 402, 480, "VIP Panel", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.button[1] = guiCreateButton(22, 62, 155, 57, "Create Vehicle", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[1], "default-bold-small") guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA") GUIEditor.button[2] = guiCreateButton(218, 62, 155, 57, "No Veh Dmg", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[2], "default-bold-small") guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFAAAAAA") GUIEditor.button[3] = guiCreateButton(218, 167, 155, 57, "VIP Stats", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[3], "default-bold-small") guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFAAAAAA") GUIEditor.button[4] = guiCreateButton(22, 167, 155, 57, "VIP Weapons", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[4], "default-bold-small") guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FFAAAAAA") GUIEditor.button[5] = guiCreateButton(22, 268, 155, 57, "VIP Skin", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[5], "default-bold-small") guiSetProperty(GUIEditor.button[5], "NormalTextColour", "FFAAAAAA") GUIEditor.button[6] = guiCreateButton(218, 268, 155, 57, "Health/Armor", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[6], "default-bold-small") guiSetProperty(GUIEditor.button[6], "NormalTextColour", "FFAAAAAA") GUIEditor.button[7] = guiCreateButton(76, 342, 233, 70, "Close VIP Panel", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[7], "default-bold-small") guiSetProperty(GUIEditor.button[7], "NormalTextColour", "FFAAAAAA") GUIEditor.label[1] = guiCreateLabel(17, 440, 150, 30, "Created By #Monster ,", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[1], "clear-normal") guiLabelSetColor(GUIEditor.label[1], 255, 0, 0) guiSetVisible(GUIEditor.window[1],false) bindKey ("F5", "down", function() if getElementData( localPlayer, 'Group') ~= nil then guiSetVisible(GUIEditor.window[1], not guiGetVisible(GUIEditor.window[1])) showCursor(guiGetVisible(GUIEditor.window[1])) end end ) addEventHandler ( "onClientGUIClick", resourceRoot, function ( ) if ( source == GUIEditor.button[1] ) then triggerServerEvent ( "GiveCar", localPlayer ) end end ) CarDamage = true addEventHandler('onClientGUIClick',root, function ( ) if ( source == GUIEditor.button[2] ) then if ( getPedOccupiedVehicle ( localPlayer ) ) then CarDamage = not CarDamage setVehicleDamageProof(getPedOccupiedVehicle ( localPlayer ) , CarDamage ) end end end ) addEventHandler ( "onClientGUIClick", resourceRoot, function ( ) if ( source == GUIEditor.button[3] ) then triggerServerEvent ( "GiveStat", localPlayer ) end end ) addEventHandler ( "onClientGUIClick", resourceRoot, function ( ) if ( source == GUIEditor.button[5] ) then triggerServerEvent ( "GiveSkin", localPlayer ) end end ) addEventHandler ( "onClientGUIClick", resourceRoot, function ( ) if ( source == GUIEditor.button[6] ) then triggerServerEvent ( "GiveArmor", localPlayer ) end end ) addEventHandler ( "onClientGUIClick", resourceRoot, function ( ) if ( source == GUIEditor.button[7] ) then guiSetVisible(GUIEditor.window[1],false) showCursor(false) if guiGetVisible(GUIEditor.window[1]) == true then guiSetVisible(GUIEditor.window[2],false) end end end ) addEventHandler ( "onClientGUIClick", resourceRoot, function ( ) if ( source == GUIEditor.button[4] ) then guiSetVisible ( GUIEditor.window[2], not guiGetVisible ( GUIEditor.window[2] ) ) end end ) GUIEditor.window[2] = guiCreateWindow(163, 191, 170, 231, "VIP Weapons Panel", false) guiWindowSetSizable(GUIEditor.window[2], false) GUIEditor.button[17] = guiCreateButton(18, 35, 136, 45, "Minigun,400", false, GUIEditor.window[2]) guiSetFont(GUIEditor.button[17], "default-bold-small") guiSetProperty(GUIEditor.button[17], "NormalTextColour", "FFAAAAAA") GUIEditor.button[18] = guiCreateButton(18, 86, 136, 45, "Rocket Launcher,20", false, GUIEditor.window[2]) guiSetFont(GUIEditor.button[18], "default-bold-small") guiSetProperty(GUIEditor.button[18], "NormalTextColour", "FFAAAAAA") GUIEditor.button[19] = guiCreateButton(18, 141, 136, 45, "Heat-Seeking RPG,20", false, GUIEditor.window[2]) guiSetFont(GUIEditor.button[19], "default-bold-small") guiSetProperty(GUIEditor.button[19], "NormalTextColour", "FFAAAAAA") lbl = guiCreateLabel(59, 195, 65, 15, "Close Panel", false, GUIEditor.window[2]) guiSetFont(lbl, "default-bold-small") guiLabelSetColor(lbl, 0, 24, 254) guiSetVisible(GUIEditor.window[2],false) addEventHandler ( "onClientGUIClick", resourceRoot, function ( ) if ( source == lbl ) then guiSetVisible ( GUIEditor.window[2],false ) end end ) function Colo() if ( source == lbl ) then guiLabelSetColor(lbl, 255, 255, 255) end end addEventHandler( "onClientMouseEnter", getRootElement(),Colo) function Colo1() if ( source == lbl ) then guiLabelSetColor(lbl, 0, 24, 254) end end addEventHandler( "onClientMouseLeave", getRootElement(),Colo1) addEventHandler ( "onClientGUIClick", resourceRoot, function ( ) if ( source == GUIEditor.button[17] ) then triggerServerEvent ( "Mini", localPlayer ) end end ) addEventHandler ( "onClientGUIClick", resourceRoot, function ( ) if ( source == GUIEditor.button[18] ) then triggerServerEvent ( "Rocket", localPlayer ) end end ) addEventHandler ( "onClientGUIClick", resourceRoot, function ( ) if ( source == GUIEditor.button[19] ) then triggerServerEvent ( "RocketH", localPlayer ) end end ) addEventHandler ( "onResourceStart", resourceRoot, function ( ) for i,player in ipairs( getElementsByType( 'player' ) ) do if isObjectInACLGroup( 'user.'..getAccountName( getPlayerAccount( player ) ), aclGetGroup( "VIP") ) then setElementData(player , 'Group', true) else setElementData( player, 'Group', nil) end end end ) Link to comment
z24d Posted August 6, 2015 Author Share Posted August 6, 2015 GUIEditor = { button = {}, window = {}, label = {} } GUIEditor.window[1] = guiCreateWindow(336, 137, 402, 480, "VIP Panel", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.button[1] = guiCreateButton(22, 62, 155, 57, "Create Vehicle", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[1], "default-bold-small") guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA") GUIEditor.button[2] = guiCreateButton(218, 62, 155, 57, "No Veh Dmg", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[2], "default-bold-small") guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFAAAAAA") GUIEditor.button[3] = guiCreateButton(218, 167, 155, 57, "VIP Stats", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[3], "default-bold-small") guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFAAAAAA") GUIEditor.button[4] = guiCreateButton(22, 167, 155, 57, "VIP Weapons", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[4], "default-bold-small") guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FFAAAAAA") GUIEditor.button[5] = guiCreateButton(22, 268, 155, 57, "VIP Skin", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[5], "default-bold-small") guiSetProperty(GUIEditor.button[5], "NormalTextColour", "FFAAAAAA") GUIEditor.button[6] = guiCreateButton(218, 268, 155, 57, "Health/Armor", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[6], "default-bold-small") guiSetProperty(GUIEditor.button[6], "NormalTextColour", "FFAAAAAA") GUIEditor.button[7] = guiCreateButton(76, 342, 233, 70, "Close VIP Panel", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[7], "default-bold-small") guiSetProperty(GUIEditor.button[7], "NormalTextColour", "FFAAAAAA") GUIEditor.label[1] = guiCreateLabel(17, 440, 150, 30, "Created By #Monster ,", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[1], "clear-normal") guiLabelSetColor(GUIEditor.label[1], 255, 0, 0) guiSetVisible(GUIEditor.window[1],false) bindKey ("F5", "down", function() if getElementData( localPlayer, 'Group') ~= nil then guiSetVisible(GUIEditor.window[1], not guiGetVisible(GUIEditor.window[1])) showCursor(guiGetVisible(GUIEditor.window[1])) end end ) addEventHandler ( "onClientGUIClick", resourceRoot, function ( ) if ( source == GUIEditor.button[1] ) then triggerServerEvent ( "GiveCar", localPlayer ) end end ) CarDamage = true addEventHandler('onClientGUIClick',root, function ( ) if ( source == GUIEditor.button[2] ) then if ( getPedOccupiedVehicle ( localPlayer ) ) then CarDamage = not CarDamage setVehicleDamageProof(getPedOccupiedVehicle ( localPlayer ) , CarDamage ) end end end ) addEventHandler ( "onClientGUIClick", resourceRoot, function ( ) if ( source == GUIEditor.button[3] ) then triggerServerEvent ( "GiveStat", localPlayer ) end end ) addEventHandler ( "onClientGUIClick", resourceRoot, function ( ) if ( source == GUIEditor.button[5] ) then triggerServerEvent ( "GiveSkin", localPlayer ) end end ) addEventHandler ( "onClientGUIClick", resourceRoot, function ( ) if ( source == GUIEditor.button[6] ) then triggerServerEvent ( "GiveArmor", localPlayer ) end end ) addEventHandler ( "onClientGUIClick", resourceRoot, function ( ) if ( source == GUIEditor.button[7] ) then guiSetVisible(GUIEditor.window[1],false) showCursor(false) if guiGetVisible(GUIEditor.window[1]) == true then guiSetVisible(GUIEditor.window[2],false) end end end ) addEventHandler ( "onClientGUIClick", resourceRoot, function ( ) if ( source == GUIEditor.button[4] ) then guiSetVisible ( GUIEditor.window[2], not guiGetVisible ( GUIEditor.window[2] ) ) end end ) GUIEditor.window[2] = guiCreateWindow(163, 191, 170, 231, "VIP Weapons Panel", false) guiWindowSetSizable(GUIEditor.window[2], false) GUIEditor.button[17] = guiCreateButton(18, 35, 136, 45, "Minigun,400", false, GUIEditor.window[2]) guiSetFont(GUIEditor.button[17], "default-bold-small") guiSetProperty(GUIEditor.button[17], "NormalTextColour", "FFAAAAAA") GUIEditor.button[18] = guiCreateButton(18, 86, 136, 45, "Rocket Launcher,20", false, GUIEditor.window[2]) guiSetFont(GUIEditor.button[18], "default-bold-small") guiSetProperty(GUIEditor.button[18], "NormalTextColour", "FFAAAAAA") GUIEditor.button[19] = guiCreateButton(18, 141, 136, 45, "Heat-Seeking RPG,20", false, GUIEditor.window[2]) guiSetFont(GUIEditor.button[19], "default-bold-small") guiSetProperty(GUIEditor.button[19], "NormalTextColour", "FFAAAAAA") lbl = guiCreateLabel(59, 195, 65, 15, "Close Panel", false, GUIEditor.window[2]) guiSetFont(lbl, "default-bold-small") guiLabelSetColor(lbl, 0, 24, 254) guiSetVisible(GUIEditor.window[2],false) addEventHandler ( "onClientGUIClick", resourceRoot, function ( ) if ( source == lbl ) then guiSetVisible ( GUIEditor.window[2],false ) end end ) function Colo() if ( source == lbl ) then guiLabelSetColor(lbl, 255, 255, 255) end end addEventHandler( "onClientMouseEnter", getRootElement(),Colo) function Colo1() if ( source == lbl ) then guiLabelSetColor(lbl, 0, 24, 254) end end addEventHandler( "onClientMouseLeave", getRootElement(),Colo1) addEventHandler ( "onClientGUIClick", resourceRoot, function ( ) if ( source == GUIEditor.button[17] ) then triggerServerEvent ( "Mini", localPlayer ) end end ) addEventHandler ( "onClientGUIClick", resourceRoot, function ( ) if ( source == GUIEditor.button[18] ) then triggerServerEvent ( "Rocket", localPlayer ) end end ) addEventHandler ( "onClientGUIClick", resourceRoot, function ( ) if ( source == GUIEditor.button[19] ) then triggerServerEvent ( "RocketH", localPlayer ) end end ) addEventHandler ( "onResourceStart", resourceRoot, function ( ) for i,player in ipairs( getElementsByType( 'player' ) ) do if isObjectInACLGroup( 'user.'..getAccountName( getPlayerAccount( player ) ), aclGetGroup( "VIP") ) then setElementData(player , 'Group', true) else setElementData( player, 'Group', nil) end end end ) Ty my man Link to comment
iMr.SFA7 Posted August 6, 2015 Share Posted August 6, 2015 Ty = Thank you أختصارات غريبة You Are Welcome . 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