-
Posts
897 -
Joined
-
Last visited
Everything posted by #|_oskar_|#
-
شغل الديبق وشوف الاخطاء اللى تطلع وصورها
-
guiGridListSetItemText(GUIEditor.gridlist[1],gg, 1,Name .. " : " .. Text , false, false) جرب كذا
-
triggerServerEvent -- #Client عشان ترسل الترايقر للكلنت استخدم triggerClientEvent -- #Server
-
--#Client function triggerServerEvent_() triggerServerEvent("VehicleColor", localPlayer,r,g,b) r,g,b = math.random(0,255), math.random(0,255), math.random(0,255) end -- addEventHandler("onClientGUIClick", root,function() if guiCheckBoxGetSelected (GUIEditor.checkbox[2]) == true then if not isPedInVehicle(localPlayer) then return outputChatBox("[RentSystem]: يجب ان تكون في السيارة اولا",255, 0, 0, true) end Timer = setTimer (triggerServerEvent_,500,0) outputChatBox('[RentSystem]: لقد تم تشغيل الأوان العشوائية بنجاح ', 0,255,0,true ) elseif guiCheckBoxGetSelected (GUIEditor.checkbox[2]) == false then if isTimer (Timer) then killTimer (Timer) end end end) --#Server addEvent("VehicleColor", true) addEventHandler("VehicleColor", root,function(r,g,b) local vehicle = getPedOccupiedVehicle(source) setVehicleColor(vehicle, r,g,b) end)
-
يعني انت كل يوم قاعد تطلب واكثر طلباتك ع القريد والى الان مافهمت
-
bindKey -- "enter"
-
اطلب بالقسم العربي احسن هنا مفيش حد هيفهمك https://forum.multitheftauto.com/viewforum.php?f ... 78b9606aec
-
كلنت local anzar = createMarker (-711,957,12.382266998291, "cylinder", 1.5, 200,100,100,150) createBlipAttachedTo(anzar,56) --- bindKey ("tab","down",function () if isElementWithinMarker(localPlayer, anzar ) then playSound("anzar.mp3") end end) ميتا اسم الصوت anzar المشكله انك ماكنت ضايف الصوت بملف الميتا
-
اتاكد بملف الميتا انه كلنت وليس سيرفر
-
شوف مو شغال ما ظبط شوف يقول لي في الدي بق ERROR: Loading script failed: markersound/client.lua:13: ')' expected (to close '(' at line 5) near '' الكود كله 8 سطور من وين جاء سطر 13 ؟
-
لاتغير في شئ local anzar = createMarker (-711,957,12.382266998291, "cylinder", 1.5, 200,100,100,150) createBlipAttachedTo(anzar,56) --- bindKey ("tab","down",function () if isElementWithinMarker(localPlayer, anzar ) then playSound("anzaar.mp3") end end)
-
bindKey ("tab","down",function () if isElementWithinMarker(localPlayer, anzar ) then playSound("anzaar.mp3") end end)
-
GroupsAdmin = { [1] = {Group='Admin'}, [2] = {Group='Console'}, [3] = {Group='Level 5'}, [4] = {Group='Level 6'}, [5] = {Group='Head.Admin'} } addEvent('check',true) addEventHandler('check',root, function ( ) for _, v in ipairs(GroupsAdmin) do if isObjectInACLGroup ("user."..getAccountName(getPlayerAccount(source)), aclGetGroup(v.Group)) then outputChatBox( "Yor Group" .. v.Group,source, 255, 255, 0) triggerClientEvent(source,"checkD",source) return false end end end)
-
xmlCreateFile xmlLoadFile xmlNodeSetValue xmlCreateChild xmlSaveFile xmlNodeGetValue xmlFindChild
-
Serial = { ["serial"] = true, } bindKey ( "o", "down", function ( ) if Serial[getPlayerSerial(localPlayer)] then guiSetVisible (window,not guiGetVisible (window)) showCursor (guiGetVisible (window)) else outputChatBox(" Access denied ",255, 100, 70 ) end end)
-
http://up.top4top.net/downloadf-1130wvb1-zip.html
-
شغال تمام الخطاء من عندك انت
-
شيل الكلمه اللى ب اول السطر وجرب
-
--saveweapon addEventHandler('onPlayerQuit',root, function() local vAcc = getPlayerAccount(source) if not vAcc or isGuestAccount(vAcc) then return end setAccountData(vAcc,'Weapon',getPlayerWeapon(source)) end ) addEventHandler('onPlayerLogin',root, function(_,acc) local v_Data = getAccountData(acc,'Weapon') if ( v_Data ) then getPlayerWeapon(source,v_Data) end end) --savemoney function playerLogin (thePreviousAccount, theCurrentAccount, autoLogin) if not (isGuestAccount (getPlayerAccount(source))) then local accountData = getAccountData (theCurrentAccount, "money") if (accountData) then local playerMoney = getAccountData(theCurrentAccount, "money") setPlayerMoney(source, playerMoney) else setPlayerMoney(source, 500) end end end addEventHandler("onPlayerLogin", getRootElement(), playerLogin) function onQuit() if not (isGuestAccount (getPlayerAccount (source))) then account = getPlayerAccount (source) if (account) then setAccountData(account,"money", tostring(getPlayerMoney(source))) end end end addEventHandler("onPlayerQuit", getRootElement(), onQuit) -----saveArmour addEventHandler('onPlayerQuit',root, function() local vAcc = getPlayerAccount(source) if not vAcc or isGuestAccount(vAcc) then return end setAccountData(vAcc,'Armor',getPedArmor(source)) end ) addEventHandler('onPlayerLogin',root, function(_,acc) local v_Data = getAccountData(acc,'Armor') if ( v_Data ) then setPedArmor(source,vData) end end ) --------------------------------------------savehealth---------------------------------- addEventHandler('onPlayerQuit',root, function() local vAcc = getPlayerAccount(source) if not vAcc or isGuestAccount(vAcc) then return end setAccountData(vAcc,'HP',getElementHealth(source)) end ) addEventHandler('onPlayerLogin',root, function(_,acc) local v_Data = getAccountData(acc,'HP') if ( v_Data ) then setPedArmor(source,vData) end end ) -----حفظ المكان ---------------------------------------savepostitioncj------------------------------------- addEventHandler('onPlayerQuit',root, function() local vAcc = getPlayerAccount(source) if not vAcc or isGuestAccount(vAcc) then return end local x,y,z = getElementPosition(source) setAccountData(vAcc,'Position_x',x) setAccountData(vAcc,'Position_y',y) setAccountData(vAcc,'Position_z',z) end ) addEventHandler('onPlayerLogin',root, function(_,acc) local x_Data = getAccountData(acc,'Position_x') local y_Data = getAccountData(acc,'Position_y') local z_Data = getAccountData(acc,'Position_z') setElementPosition(source,x_Data,y_Data,z_Data) end )
-
بدله بسطر 10 setAccountData(vAcc,'Weapon',getPlayerWeapon(source))
-
شيل الاند بسطر 13 لانه زياده
-
https://wiki.multitheftauto.com/wiki/Dx ... tOnElement