Stranger
Members-
Posts
710 -
Joined
-
Last visited
Everything posted by Stranger
-
جرب هذا Markers = { [1] = { 1561.6853027344, -1610.3962402344, 13.3828125 }, [2] = { 1567.1374511719, -1609.6643066406, 13.3828125 }, [3] = { 1572.4000244141, -1609.6999511719, 13.39999961853 }, [4] = { 1557.6053466797, -1610.416015625, 13.3828125 }, } addEventHandler ( "onClientResourceStart", resourceRoot, function ( ) for _, TheMarkers in ipairs ( Markers ) do TheMarker = createMarker ( TheMarkers[1], TheMarkers[2], TheMarkers[3] - 1, "cylinder", 2, 0, 0, 255, 255 ) end end ) GUIEditor = { button = {}, window = {}, label = {} } GUIEditor.window[1] = guiCreateWindow(287, 133, 210, 315, "Cars Police v1.0", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.button[1] = guiCreateButton(52, 73, 101, 37, "Police LS", false, GUIEditor.window[1]) GUIEditor.button[2] = guiCreateButton(52, 125, 101, 37, "Police Hpv1000", false, GUIEditor.window[1]) GUIEditor.button[4] = guiCreateButton(52, 178, 101, 37, "Police Enforcer", false, GUIEditor.window[1]) GUIEditor.button[5] = guiCreateButton(52, 229, 101, 37, "Police Ranger", false, GUIEditor.window[1]) GUIEditor.label[1] = guiCreateLabel(73, 37, 57, 19, "By MR.KING", false, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[1], 255, 255, 0) guiSetVisible(GUIEditor.window[1],false) addEventHandler ( "onClientMarkerHit", resourceRoot, function ( hitPlayer ) if hitPlayer == localPlayer then local team = getPlayerTeam ( hitPlayer ) if team and getTeamName ( team ) == "Police" then guiSetVisible ( GUIEditor.window[1], not guiGetVisible ( GUIEditor.window[1] ) ) showCursor ( guiGetVisible ( GUIEditor.window[1] ) ) guiSetInputEnabled ( guiGetVisible ( GUIEditor.window[1] ) ) end end end ) function givecar ( id ) triggerServerEvent ( "givecar", localPlayer, id ) guiSetVisible ( GUIEditor.window[1]], not guiGetVisible ( GUIEditor.window[1] ) ) showCursor ( guiGetVisible(GUIEditor.window[1] ) ) guiSetInputEnabled ( guiGetVisible ( GUIEditor.window[1] ) ) end addEventHandler( "onClientGUIClick", root, function ( ) if ( source == GUIEditor.button[1] ) then givecar(596) elseif ( source == GUIEditor.button[2] ) then givecar(523) elseif ( source == GUIEditor.button[4] ) then givecar(427) elseif ( source == GUIEditor.button[5] ) then givecar(599) end end )
-
همم جرب Markers = { [1] = { 1561.6853027344, -1610.3962402344, 13.3828125 }, [2] = { 1567.1374511719, -1609.6643066406, 13.3828125 }, [3] = { 1572.4000244141, -1609.6999511719, 13.39999961853 }, [4] = { 1557.6053466797, -1610.416015625, 13.3828125 }, } addEventHandler ( "onClientResourceStart", resourceRoot, function ( ) for _, TheMarkers in ipairs ( Markers ) do TheMarker = createMarker ( TheMarkers[1], TheMarkers[2], TheMarkers[3] - 1, "cylinder", 2, 0, 0, 255, 255 ) end end ) GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Label = {} GUIEditor_Window[1] = guiCreateWindow(290,179,172,343,"Cars Police v1.0",false) guiSetVisible(GUIEditor_Window[1], false) guiSetAlpha(GUIEditor_Window[1],1) GUIEditor_Button[1] = guiCreateButton(303,226,139,49,"Police LS",false, GUIEditor_Window[1]) GUIEditor_Button[2] = guiCreateButton(302,294,137,48,"Police Hpv1000",false, GUIEditor_Window[1]) GUIEditor_Button[4] = guiCreateButton(300,362,136,46,"Police Enforcer",false, GUIEditor_Window[1]) GUIEditor_Button[5] = guiCreateButton(298,427,136,45,"Police Ranger",false, GUIEditor_Window[1]) GUIEditor_Label[2] = guiCreateLabel(0.61046516895294,0.05830904841423,2.3841857910156e-007,-5.9604644775391e-008,"",true,GUIEditor_Window[1]) guiSetAlpha(GUIEditor_Label[2],1) guiLabelSetVerticalAlign(GUIEditor_Label[2],center) guiLabelSetHorizontalAlign(GUIEditor_Label[2],center,false, GUIEditor_Window[1]) GUIEditor_Label[3] = guiCreateLabel(292,202,147,21,"By MR.KING",false, GUIEditor_Window[1]) guiLabelSetVerticalAlign(GUIEditor_Label[3],center) guiLabelSetHorizontalAlign(GUIEditor_Label[3],center,false) addEventHandler ( "onClientMarkerHit", resourceRoot, function ( hitPlayer ) if hitPlayer == localPlayer then local team = getPlayerTeam ( hitPlayer ) if team and getTeamName ( team ) == "Police" then guiSetVisible ( GUIEditor_Window[1], not guiGetVisible ( GUIEditor_Window[1] ) ) showCursor ( guiGetVisible ( GUIEditor_Window[1] ) ) guiSetInputEnabled ( guiGetVisible ( GUIEditor_Window[1] ) ) end end end ) function givecar ( id ) triggerServerEvent ( "givecar", localPlayer, id ) guiSetVisible ( GUIEditor_Window[1], not guiGetVisible ( GUIEditor_Window[1] ) ) showCursor ( guiGetVisible(GUIEditor_Window[1] ) ) guiSetInputEnabled ( guiGetVisible ( GUIEditor_Window[1] ) ) end addEventHandler( "onClientGUIClick", root, function ( ) if ( source == GUIEditor_Button[1] ) then givecar(596) elseif ( source == GUIEditor_Button[2] ) then givecar(523) elseif ( source == GUIEditor_Button[4] ) then givecar(427) elseif ( source == GUIEditor_Button[5] ) then givecar(599) end end )
-
Markers = { [1] = { 1561.6853027344, -1610.3962402344, 13.3828125 }, [2] = { 1567.1374511719, -1609.6643066406, 13.3828125 }, [3] = { 1572.4000244141, -1609.6999511719, 13.39999961853 }, [4] = { 1557.6053466797, -1610.416015625, 13.3828125 }, } addEventHandler ( "onClientResourceStart", resourceRoot, function ( ) for _, TheMarkers in ipairs ( Markers ) do TheMarker = createMarker ( TheMarkers[1], TheMarkers[2], TheMarkers[3] - 1, "cylinder", 2, 0, 0, 255, 255 ) end end ) GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Label = {} GUIEditor_Window[1] = guiCreateWindow(290,179,172,343,"Cars Police v1.0",false) guiSetAlpha(GUIEditor_Window[1],1) GUIEditor_Button[1] = guiCreateButton(303,226,139,49,"Police LS",false, GUIEditor_Window[1]) GUIEditor_Button[2] = guiCreateButton(302,294,137,48,"Police Hpv1000",false, GUIEditor_Window[1]) GUIEditor_Button[4] = guiCreateButton(300,362,136,46,"Police Enforcer",false, GUIEditor_Window[1]) GUIEditor_Button[5] = guiCreateButton(298,427,136,45,"Police Ranger",false, GUIEditor_Window[1]) GUIEditor_Label[2] = guiCreateLabel(0.61046516895294,0.05830904841423,2.3841857910156e-007,-5.9604644775391e-008,"",true,GUIEditor_Window[1]) guiSetAlpha(GUIEditor_Label[2],1) guiLabelSetVerticalAlign(GUIEditor_Label[2],center) guiLabelSetHorizontalAlign(GUIEditor_Label[2],center,false) GUIEditor_Label[3] = guiCreateLabel(292,202,147,21,"By MR.KING",false, GUIEditor_Window[1]) guiLabelSetVerticalAlign(GUIEditor_Label[3],center) guiLabelSetHorizontalAlign(GUIEditor_Label[3],center,false) addEventHandler ( "onClientMarkerHit", resourceRoot, function ( hitPlayer ) if hitPlayer == localPlayer then local team = getPlayerTeam ( hitPlayer ) if team and getTeamName ( team ) == "Police" then guiSetVisible ( GUIEditor_Window[1], not guiGetVisible ( GUIEditor_Window[1] ) ) showCursor ( guiGetVisible ( GUIEditor_Window[1] ) ) guiSetInputEnabled ( guiGetVisible ( GUIEditor_Window[1] ) ) end end end ) function givecar ( id ) triggerServerEvent ( "givecar", localPlayer, id ) guiSetVisible ( GUIEditor_Window[1], not guiGetVisible ( GUIEditor_Window[1] ) ) showCursor ( guiGetVisible(GUIEditor_Window[1] ) ) guiSetInputEnabled ( guiGetVisible ( GUIEditor_Window[1] ) ) end addEventHandler( "onClientGUIClick", root, function ( ) if ( source == GUIEditor_Button[1] ) then givecar(596) elseif ( source == GUIEditor_Button[2] ) then givecar(523) elseif ( source == GUIEditor_Button[4] ) then givecar(427) elseif ( source == GUIEditor_Button[5] ) then givecar(599) end end )
-
اذا السياره انضربت
-
العفو Edit # GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Window[1] = guiCreateWindow(258,134,343,305,"][ مود الانتقالات ][",false) guiSetAlpha(GUIEditor_Window[1],1) GUIEditor_Button[1] = guiCreateButton(498,382,102,53,"ساحة الزومبي",false) guiSetVisible(GUIEditor_Window[1], false) local markerName = createMarker(1278.53, -1328.4, 13.3, "cylinder", 2, 255, 0, 0 ) addEventHandler("onClientMarkerHit", markerName, function () guiSetVisible(GUIEditor_Window[1], true) showCursor(true) end )
-
اكيد ماراح يظهر لأنك حاط الحدث سيرفر المهم جرب GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Window[1] = guiCreateWindow(258,134,343,305,"][ مود الانتقالات ][",false) guiSetAlpha(GUIEditor_Window[1],1) GUIEditor_Button[1] = guiCreateButton(498,382,102,53,"ساحة الزومبي",false) local markerName = createMarker(1278.53, -1328.4, 13.3, "cylinder", 2, 255, 0, 0 ) addEventHandler("onClientMarkerHit", markerName, function () guiSetVisible(GUIEditor_Window[1], true) showCursor(true) end )
-
When i click the button , nothing happens
-
يعني مثلا guiCreateWindow -- سويينا نافذه حط اسم للنافذه يصير كذا myGui = guiCreateWindow وتحطه بدال guiName مو تحط اسم مود وعشان تسوي هذي اللوحه لازم تحمل هذا المود اضغط هنا وبعد ماتسويها تعال واطرح كودك
-
local markerName = createMarker(x,y,z, "cylinder", 2, 255, 0, 0) -- نسوي ماركر addEventHandler("onMarkerHit", markerName, -- الحدث function () -- الوظيفه guiSetVisible(guiName, true) -- نظهر اللوحه showCursor(true) -- نظهر الماوس end -- اغلا ق الوظيفه ) -- قوس الحدث
-
خخخ ذا سيرفري المهم طلبك هذا هو
-
ما ادري وش قصدك بمود معين اذا قصدك لوحة استخدم ----------------------------------------------- Event : "onMarkerHit" ----------------------------------------------- guiSetVisible
-
hello guys i need help in this code cause i don't know what the problem the code : GRID2 = guiCreateGridList(10, 27, 292, 227, false, Wind2) guiGridListAddColumn(GRID2, "Vehicle :", 0.4) guiGridListAddColumn(GRID2, "Cost", 0.4) for i = 1, 15 do guiGridListAddRow(GRID2) end guiGridListSetItemText(GRID2, 0, 2, "$1500000", false, false) guiGridListSetItemColor(GRID2, 0, 2, 22, 243, 11, 255) guiGridListSetItemText(GRID2, 1, 2, "$3500000", false, false) guiGridListSetItemColor(GRID2, 1, 2, 22, 243, 11, 255) guiGridListSetItemText(GRID2, 2, 2, "$4500000", false, false) guiGridListSetItemColor(GRID2, 2, 2, 22, 243, 11, 255) guiGridListSetItemText(GRID2, 3, 2, "$6000000", false, false) guiGridListSetItemColor(GRID2, 3, 2, 22, 243, 11, 255) guiGridListSetItemText(GRID2, 0, 1, "Maverick", false, false) guiGridListSetItemText(GRID2, 1, 1, "Police Maverick", false, false) Select2 = guiCreateButton(10, 264, 292, 25, "Buy", false, Wind2) guiSetFont(Select2, "clear-normal") guiSetProperty(Select2, "NormalTextColour", "FF16F30B") Close2 = guiCreateButton(10, 291, 292, 25, "Close", false, Wind2) guiSetFont(Close2, "clear-normal") guiSetProperty(Close2, "NormalTextColour", "FFFF0000") guiSetVisible(Wind2, false) addEventHandler("onClientGUIClick", root, function() if(source == Select2)then local row, col = guiGridListGetSelectedItem(GRID2) local Veh2 = guiGridListGetItemText(GRID2, row, col) if(Veh2 and Manster4[Veh2])then guiSetVisible(Wind2, false) guiSetInputEnabled(false) if(Veh2 == "Police Maverick")then if (getPlayerMoney(localPlayer) >= 1500000) then takePlayerMoney(localPlayer, 1500000) triggerServerEvent("Vehiclee2", localPlayer, Manster4[Veh2], "Cars2") elseif(Veh2 == "Maverick")then if (getPlayerMoney(localPlayer) >= 3500000) then takePlayerMoney(localPlayer, 3500000) end triggerServerEvent("Vehiclee2", localPlayer, Manster4[Veh2], "[Manster2]") end elseif(source == Close2)then guiSetVisible(Wind2, false) guiSetInputEnabled(false) end end end end )
-
حياك الله ^حقت القروب افادك جعفر فوق !
-
isPedDead -- اذا ماتو getTeamName -- نجيب اسم التيم setElementPosition -- يطلعهم من المهمه setElementDimension -- يحطهم في العالم الاصلي givePlayerMoney -- يعطيهم فلوس ------------------------------------------ Edit # Event: "onClientPlayerDamage" getElementData -- سوي شرط يتحقق من القروب -- اذا تحقق cancelEvent -- يخليهم مايموتون
-
i did, but nothing happens
-
all the code, nothing happens
-
hello guys i try to make when player join to the server and the transfer box active then, fade camera but didn't work this is the code : resourceRoot = getResourceRootElement(getThisResource()) function nn() if isTransferBoxActive() then fadeCamera(false) else fadeCamera(true) end end addEventHandler("onClientResourceStart",resourceRoot,nn)
-
دور على كود اسمه destroyElement واحذفه !!
-
-- Client isTransferBoxActive outputChatBox
-
local marker = createMarker (x,y,z, "cylinder", 5, 255, 0, 0) addEventHandler("onVehicleStartExit", root, function (player) if isElementWithinMarker(player, marker) then cancelEvent () end end )