-
Posts
7,337 -
Joined
-
Days Won
11
Everything posted by TAPL
-
حبيبي من قال لك أنسخ الأمثلة الي بالويكي؟ بالأساس أنا نفسي ما أعطي الأمثلة أي أهتمام كل الفائدة من الأمثلة هو أنك تشوف تطبيق للأمر كل المطلوب منك أنك تشوف الأمر و طريقة أستخدامه و أيش يتطلب و أيش يسوي https://wiki.multitheftauto.com/wiki/GetPlayerName https://wiki.multitheftauto.com/wiki/GetPlayerIP https://wiki.multitheftauto.com/wiki/GetPlayerSerial و بتحتاج هذا عشان تحط الأسم أو الآيبي أو السيريال في ليبل في النافذة https://wiki.multitheftauto.com/wiki/GuiSetText
-
if you show the code, we may can help you. if you don't, we can't help you at all.
-
أيش الي تبي تسويه بالضبط؟؟ لا تقول لي عطني كل أكواد شوب
-
You don't have Edit with name LoginUsername and LoginPassword and EditRegisterUsername and EditRegisterPassword you have only two Edit called GUIEditor_Edit[1] and GUIEditor_Edit[2] when you copy codes from other resource make sure you have fixed the variables name as you have in your code.
-
local Marker2 = createMarker ( -1638.3317871094, -2239.3054199219, 30.4765625, "cylinder", 1.29999995, 255, 255, 0, 255 ) function hitthiselement(player) triggerClientEvent(player,"hitmymarker", player) end addEventHandler("onMarkerHit", Marker2, hitthiselement)
-
Again. https://wiki.multitheftauto.com/wiki/GetPlayerTeam https://wiki.multitheftauto.com/wiki/GetTeamColor https://wiki.multitheftauto.com/wiki/RGBToHex
-
https://wiki.multitheftauto.com/wiki/GetPlayerTeam https://wiki.multitheftauto.com/wiki/GetTeamColor https://wiki.multitheftauto.com/wiki/RGBToHex
-
Search in community before open topic https://community.multitheftauto.com/ind ... ils&id=791
-
يعني نعطيك أكواد و أنت تسوي كوبي بست؟ Shop By ABO.SR7777A و بالأخير LOL!
-
Fixed + Tested. -- Client Side -- MainGui = guiCreateWindow(408,203,240,349,"Spawn bike",false) guiWindowSetSizable(MainGui, false) guiSetVisible(MainGui, false) VehGrid = guiCreateGridList(14,32,180,256,false,MainGui) guiGridListSetSelectionMode(VehGrid,2) _bikes = guiGridListAddColumn(VehGrid,"Bikes",0.85) Spawn = guiCreateButton(15,305,96,35,"Spawn",false,MainGui) guiSetFont(Spawn,"clear-normal") Cancel = guiCreateButton(128,305,96,35,"Cancel",false,MainGui) Label = guiCreateLabel(x,y,z,a,"By:Lavand",false,MainGui) guiSetFont(Cancel,"clear-normal") local vehicles = {"BMX", "Bike", "Infernus", "NRG-500"} for index, vehicle in ipairs(vehicles) do local row = guiGridListAddRow (VehGrid) guiGridListSetItemText(VehGrid, row, _bikes, tostring(vehicle), false, false) end local marker = createMarker(1064.5, 1752.9000244141, 9.3000001907349, 'cylinder', 1.5, 255, 255, 255, 255) addEventHandler("onClientMarkerHit", marker, function (hitElement) if getElementType(hitElement) == "player" and (hitElement == localPlayer) and not isPedInVehicle(hitElement) then if not guiGetVisible(MainGui) then guiSetVisible(MainGui, true) showCursor(true) end end end) addEventHandler("onClientGUIClick", root, function () if (source == Spawn) then local row,col = guiGridListGetSelectedItem(VehGrid) if (row and col and row ~= -1 and col ~= -1) then local vehicleName = guiGridListGetItemText(VehGrid, row, 1) if vehicleName == "BMX" then triggerServerEvent("spawnvehicle",localPlayer,509) elseif vehicleName == "Bike" then triggerServerEvent("spawnvehicle",localPlayer,481) elseif vehicleName == "Infernus" then triggerServerEvent("spawnvehicle",localPlayer,411) elseif vehicleName == "NRG-500" then triggerServerEvent("spawnvehicle",localPlayer,522) end else outputChatBox("Error: Please, select a vehicle of list.",255,0,0) end elseif (source == Cancel) then triggerEvent("closeWindow", root) end end) addEventHandler("onClientGUIDoubleClick", root, function () if (source == VehGrid) then local row,col = guiGridListGetSelectedItem(VehGrid) if (row and col and row ~= -1 and col ~= -1) then local vehicleName = guiGridListGetItemText(VehGrid, row, 1) if vehicleName == "BMX" then triggerServerEvent("spawnvehicle",localPlayer,509) elseif vehicleName == "Bike" then triggerServerEvent("spawnvehicle",localPlayer,481) elseif vehicleName == "Infernus" then triggerServerEvent("spawnvehicle",localPlayer,411) elseif vehicleName == "NRG-500" then triggerServerEvent("spawnvehicle",localPlayer,522) end end end end) addEventHandler("onClientMarkerLeave", marker, function () triggerEvent("closeWindow", root) end) addEvent("closeWindow", true) addEventHandler("closeWindow", root, function () guiSetVisible(MainGui, false) showCursor(false) guiSetInputEnabled(false) end) -- Server Side -- local vehicles = { } addEvent("spawnvehicle", true) addEventHandler("spawnvehicle", root, function(vehID) if isElement(vehicles[source]) then destroyElement(vehicles[source]) end local x,y,z = getElementPosition(source) vehicles[source] = createVehicle(vehID,x,y,z) if vehicles[source] then setVehicleColor(vehicles[source],255,255,255) setTimer(warpPedIntoVehicle, 200,1,source,vehicles[source]) triggerClientEvent(source, "closeWindow", source) end end)
-
Wrong section. i answered you about the safe area in Arabic section. viewtopic.php?f=119&t=45073
-
أولاً: سو المنطقة عن طريق الكود createRadarArea https://wiki.multitheftauto.com/wiki/CreateRadarArea رابط الويكي ثانياً: "zombieProof" حط ألمنت داتا للمنطقة مثال local area = createRadarArea(x,y,sizeX,sizeY,r,g,b,a) setElementData(area,"zombieProof",true)
-
explain for us why you don't want use function setTime as far as i know there no other way to change the time without using setTime
-
Why you don't use setTime? settings is an data that saved inside meta the gamemode when you start it, it will get the time in the settings and set it using setTime you can use this event https://wiki.multitheftauto.com/wiki/OnSettingChange with setTime and when you click on the button, use this https://wiki.multitheftauto.com/wiki/set and the time will changed.
-
-- Client Side -- MainGui = guiCreateWindow(408,203,240,349,"Spawn bike",false) guiWindowSetSizable(MainGui, false) guiSetVisible(MainGui, false) VehGrid = guiCreateGridList(14,32,180,256,false,MainGui) guiGridListSetSelectionMode(VehGrid,2) _bikes = guiGridListAddColumn(VehGrid,"Bikes",0.85) Spawn = guiCreateButton(15,305,96,35,"Spawn",false,MainGui) guiSetFont(Spawn,"clear-normal") Cancel = guiCreateButton(128,305,96,35,"Cancel",false,MainGui) Label = guiCreateLabel(x,y,z,a,"By:Lavand",false,MainGui) guiSetFont(Cancel,"clear-normal") local vehicles = {"BMX", "Bike", "Infernus", "NRG-500"} for index, vehicle in ipairs(vehicles) do local row = guiGridListAddRow (VehGrid) guiGridListSetItemText(VehGrid, row, _bikes, tostring(vehicle), false, false) end local marker = createMarker(1064.5, 1752.9000244141, 9.3000001907349, 'cylinder', 1.5, 255, 255, 255, 255) addEventHandler("onClientMarkerHit", marker, function (hitElement) if getElementType(hitElement) == "player" and (hitElement == localPlayer) then if not guiGetVisible(MainGui) then guiSetVisible(MainGui, true) showCursor(true) end end end addEventHandler("onClientGUIClick", root, function () if (source == Spawn) then local row,col = guiGridListGetSelectedItem(VehGrid) if (row and col and row ~= -1 and col ~= -1) then local vehicleName = guiGridListGetItemText(VehGrid, row, 1) if vehicleName == "BMX" then triggerServerEvent("spawnvehicle",localPlayer,509) elseif vehicleName == "Bike" then triggerServerEvent("spawnvehicle",localPlayer,481) else outputChatBox("Error: Please, select a vehicle of list.",255,0,0) end if (source == Cancel) then triggerEvent("closeWindow", root) end end end end) addEventHandler("onClientGUIDoubleClick", root, function () if (source == VehGrid) then local row,col = guiGridListGetSelectedItem(VehGrid) if (row and col and row ~= -1 and col ~= -1) then local vehicleName = guiGridListGetItemText(VehGrid, row, 1) if vehicleName == "BMX" then triggerServerEvent("spawnvehicle",localPlayer,509) elseif vehicleName == "Bike" then triggerServerEvent("spawnvehicle",localPlayer,481) end end end end) addEventHandler("onClientMarkerLeave", marker, function () triggerEvent("closeWindow", root) end) addEvent("closeWindow", true) addEventHandler("closeWindow", root, function () guiSetVisible(MainGui, false) showCursor(false) guiSetInputEnabled(false) setElementFrozen(localPlayer, false) end) -- Server Side -- local vehicles = { } addEvent("spawnvehicle", true) addEventHandler("spawnvehicle", root, function(vehID) if isElement(vehicles[source]) then destroyElement(vehicles[source]) local x,y,z = getElementPosition(source) vehicles[source] = createVehicle(vehID,x,y,z) if vehicles[source] then setVehicleColor(vehicles[source],255,255,255) setTimer(warpPedIntoVehicle, 200,1,source,vehicles[source]) triggerClientEvent(source, "closeWindow", source) end end end)
-
if you want change the settings in meta.xml you can use this https://wiki.multitheftauto.com/wiki/Set https://wiki.multitheftauto.com/wiki/Set ... ting_names
-
i can't find 'name' in your code, it's nick check your code again.
-
getPedOccupiedVehicle not needed if you read the wiki for event 'onClientVehicleEnter' you will find this The source of the event is the vehicle that the player entered. https://wiki.multitheftauto.com/wiki/OnC ... hicleEnter
-
وش رايك نسوي الشوب و نحط فيه أسمك و نرسله لك و أنتهى الموضوع؟ ههههههههههههههه
-
أنت سويت أيش الكود من الويكي و على فكره تراه سيرفر مو كلينت
-
local amountOfTopsToDisplay = 5 addCommandHandler("top", function(player, command, value) if value == "wins" or value == "points" or value == "second" or value == "third" then local tableOrder = {} for i,v in ipairs(getAccounts()) do table.insert(tableOrder,{name = getAccountData(v, "nick"),data = getAccountData(v, vaule)}) end table.sort(tableOrder, function(a,b) return tonumber(a.data)>tonumber(b.data) end) outputChatBox("#c0c0c0* Top 5 #abcdef"..value, player, 255,255,255,true) for i,v in ipairs(tableOrder) do outputChatBox("#c0c0c0* #abcdef"..i.."#c0c0c0. #abcdef"..v.name.." #c0c0c0- #abcdef"..v.data, player, 255,255,255,true) if i == amountOfTopsToDisplay then break end end else outputChatBox("#c0c0c0* Syntax : #abcdef/top #c0c0c0[#abcdefwins #c0c0c0| #abcdefpoints#c0c0c0]", player, 255,255,255,true) end end)
-
what is this? for i,v do i think you want to get all accounts for i,v in ipairs(getAccounts()) do
-
https://wiki.multitheftauto.com/wiki/CreatePed https://wiki.multitheftauto.com/wiki/CreateVehicle https://wiki.multitheftauto.com/wiki/WarpPedIntoVehicle https://wiki.multitheftauto.com/wiki/SetPedControlState ...و عموماً الكود صعب
