-
Posts
573 -
Joined
-
Last visited
-
Days Won
4
Everything posted by #\_oskar_/#
-
what can i do if i don't need skin, and i want to set normal color
#\_oskar_/# replied to DeaDD20's topic in Scripting
please use Lua code -
n_nova = { {"البنك [✈]",1481.08887,-1762.94910,18.7957}, {"مهمة البنك [✈]",589.76153,-1243.05187,17.92252}, {"مرقى [✈]",-2045.40332, -3135.07373, 4.99000}, {"مسبح [✈]",-3374.37329, -2100.28369, 5.00000 }, {"المدينة الصناعية [✈]",2762.0681152344, -2389.3217773438, 13.6328125}, {"الشاطئ [✈]",253.8177947998, -1810.9669189453, 4.3108253479004}, {"المرقـص [✈]",-3294.71924, -2298.75537, 5.00000 }, {"الورشـة [✈]",-3136.55054,-2222.82227,5.05153}, {"ساحة القتال [✈]",-2918.34180, -2726.62793, 9.89688}, {"شارع الطويل [✈]",-3258.67212,-3006.19702 , 5.00000}, {"شارع التطويف [✈]",-2318.91064,-3086.81518, 5.00000}, {"شارع العوشزية [✈]",-496.6276550293, 591.74462890625, 17.019058227539}, {"شارع الفروسيه [✈]",2878.1115722656, -1110.029296875, 10.882762908936}, {"شارع المحطة [✈]",-1311.6459960938, 2674.9191894531, 50.064270019531}, {"شارع الدخل [✈]",1332.46301,-1412.89074,13.54520}, {"شارع الحفريات [✈]",-2935.8588867188, -1368.9516601563, 11.714294433594}, {"شارع البستان [✈]",2491.12109375, -1667.4482421875, 13.34375}, {"تطعيس [✈]",-2461.22387,-2946.62255 , 5.00000}, {"الدائري [✈]",1792.79541,2393.04248 ,7.90996}, {"النخـيل [✈]",2068.72119, 907.06708, 8.17013}, {"الـشرقي [✈]",1054.6721191406,2729.0747070313 ,14.15293}, {"الـغربي [✈]",1187.9227294922, 1354.2520751953, 8.7430381774902}, {"الــغروب [✈]",662.55310058594, 1936.7479248047, 5.5052728652954}, {"الجسر المعلق [✈]",-2665.73437,1404.73669,55.8125}, {"معرض السيارات [✈]",-1661.35559,1211.80078,7.25}, {"مقر الجيش [✈]",83.86812,1920.88134,17.73764}, {"المطار الاول ( 1 ) [✈]",1396.12707,-2469.34716,13.55468}, {"المطار الثاني ( 2 ) [✈]",-1666.00500,-155.27819,14.14843}, {"المطار الثالث ( 3 ) [✈]",1504.62731,1158.70458,10.8125}, {"مطار الجيش ( 4 ) [✈]",427.59286,2530.47485,16.63177}, } GUIEditor = { gridlist = {}, window = {}, button = {}, edit = {} } local screenW, screenH = guiGetScreenSize() wnd = guiCreateWindow((screenW - 362) / 2, (screenH - 559) / 2, 362, 559, "الانتقالات", false) guiWindowSetSizable(wnd, false) guiSetVisible(wnd,false) n_ova = guiCreateButton(106, 491, 150, 58, "انتقال", false, wnd) g_nova = guiCreateGridList(35, 92, 290, 373, false, wnd) guiGridListAddColumn(g_nova, "#", 0.9) B7th = guiCreateEdit(35, 43, 290, 34, "", false, wnd) bindKey("F4","down", function () if guiGetVisible(wnd) then guiSetVisible(wnd,false) showCursor(false) else guiSetVisible(wnd,true) showCursor(true) end end ) addEventHandler( "onClientGUIChanged", B7th, function() guiGridListClear( g_nova ) local Text = guiGetText( source ) for _, Table in ipairs( n_nova ) do if ( string.find( Table[1], Text, 1, true ) ) then local Row = guiGridListAddRow( g_nova ) guiGridListSetItemText(g_nova,Row ,1,Table[1],false,false) guiGridListSetItemData(g_nova,Row ,1,{Table[2],Table[3],Table[4]}) guiGridListSetItemColor( g_nova, Row, 1,0, 144, 255) end end end ) --------------------------------------- for i,ha in ipairs(n_nova) do local row = guiGridListAddRow(g_nova) guiGridListSetItemText(g_nova,row,1,ha[1],false,false) guiGridListSetItemData(g_nova,row,1,{ha[2],ha[3],ha[4]}) end addEventHandler("onClientGUIClick",root, function () local sel = guiGridListGetSelectedItem(g_nova) if source == n_ova then if sel ~= -1 then local x,y,z = unpack(guiGridListGetItemData(g_nova,sel,1)) setElementPosition(localPlayer,x,y,z) else outputChatBox("* ألــرجآء اختيار مكآن للآنتقال اليه",255,0,0) end end end )
-
يب تقدر ب استخدام الشادر المشكله من عندك انت شوف سطر 2 بالملف حقك او اطرحه
-
-- server addCommandHandler ( "vehicleid", function ( thePlayer, commandName ) if exports.pool:getElement("vehicle", tonumber(id)) == 190 then triggerClientEvent (root, "mod",thePlayer,id) end end) -- client addEvent("mod", true) addEventHandler("mod", root, function mod (id) engineImportTXD ( engineLoadTXD ( "596.txd" ),596) engineReplaceModel ( engineLoadDFF ( "596.dff" ),596) end) جرب كدا انا صلحتلك الكود وانت شوف كيف بتسوي الايدي
-
مافي سياره ايدي حقها 190
-
كيف الكود تبي يشتغل ؟ ليه حاطتها ؟ وهنا كيف الترايقر تبيه يشتغل ؟ والسياره مو متعرفه + اللاعب مو متعرف + اسم الترايقر يختلف بالاستقبال حقه بالكلنت وهنا وين الايدي حق السياره ؟ ممكن تفهمني ليه حاطت رقم 190 هنا ؟
-
getElementModel engineLoadTXD + engineLoadDFF
-
شغال TopBarChat اتأكد ان مود اخراج نص جهة سيرفر exports.TopBarChat:sendClientMessage("Hello World!", source,255, 0, 100, false, 7) اخراج نص جهة كلنت exports.TopBarChat:sendClientMessage("Hello World!", 255, 0, 100 false, 7)
-
بيختلف من كلنت لسيرفر يعني ممكن الكوماند بجهة سيرفر بجهة كلنت executeCommandHandler وانت حاطت
-
حمل Download shader_tex_names.zip وشغله بالسيرفر وبعدين دوس رقم 8 عشان تظهره وعشان تشوف اسم الشيدر حق السياره اللي انت راكبها دوس رقم 7 و 9 k وعشان تنسخ اسم الشيدر من زر
-
create a new file and add it in meta.xml <script src="colorful.Lua" type="client" /> -- here is your codes file colorful <script src="gui.Lua" type="client" /> -- here file your gui
-
[Question] Best way to create tables and loop through.
#\_oskar_/# replied to Ice_Cool's topic in Scripting
Error 1 It has to be like this createColShapes = createColRectangle (col.colX, col.colY, col.colWidth, col.colHeight) Error 2 You forgot to add the loop and Object name -
fix = { {1606.1678466797, -1712.462890625, 13.593994140625+1 }, {1609.2961425781, -1712.462890625, 13.593994140625+1} } local x, y, z = unpack(fix[math.random(1,#fix)]) JailEscapeMarker1 = createMarker( x, y, z, "arrow", 1.5, 255, 255, 0, 150)
-
Event Client side onClientPickupHit Event Server side onPickupHit
-
local Painelstt = false -- You forgot to add this local Botao = "F7" function OpenPainel() if Painelstt == false then addEventHandler("onClientRender", getRootElement(), PainelDc) Painelstt = true showCursor(true) else removeEventHandler("onClientRender", getRootElement(), PainelDc) Painelstt = false showCursor(false) end end bindKey(Botao, "down", OpenPainel)
-
bindKey ("tab","both",function (_, state) if state == "down" then guiSetVisible(window,true) else guiSetVisible(window,false ) end end)
-
0 عدد لانهائي 1 التايمر يشتعل مره واحده ويوقف
-
I think that you mean this https://community.multitheftauto.com/index.php?p=resources&s=details&id=11836
-
مود جميل زي اللي ناشره بالتوفيق
-
Remove local
-
dxDrawRectangle(x*761, y*322, x*399, y*436,tocolor(254, 0, 0, 123), false)
-
؟؟ انت شكلك مافهمت CARSVIP1 = {} CARSVIP1[source] = createVehicle(411,-2409.53516, -600.94574, 132.64844, 0, 0, 180) ------- addCommandHandler ( "lock", function (thePlayer) if thePlayer and isElement(CARSVIP1[thePlayer]) then local vehicleX, vehicleY, vehicleZ = getElementPosition ( CARSVIP1[thePlayer] ) local playerX, playerY, playerZ = getElementPosition ( thePlayer ) if isElement(CARSVIP1[thePlayer]) then if isVehicleLocked ( CARSVIP1[thePlayer] ) then setVehicleLocked ( CARSVIP1[thePlayer], false ) exports["guimessages"]:outputServer(thePlayer, "#FF0000*#FFFF00[VIP System] #00FF00Your vehicle is unlock.", 255, 0, 0, true) setElementData(CARSVIP1[thePlayer], "vehicleLocked", false) else setVehicleLocked ( CARSVIP1[thePlayer], true ) exports["guimessages"]:outputServer(thePlayer, "#FF0000*#FFFF00[VIP System] #FF0000Your vehicle is locked.", 255, 0, 0, true) setElementData(CARSVIP1[thePlayer], "vehicleLocked", true) end end end end ) CARSVIP1[هنا تحط اللاعب ع حسب مانت معرفه]
-
العفو ف الخدمه ب اي وقت
