Jump to content

d7ici

Members
  • Posts

    6
  • Joined

  • Last visited

Details

  • Gang
    none
  • Location
    saudi arabia .
  • Occupation
    San Anderas
  • Interests
    none

Recent Profile Visitors

774 profile views

d7ici's Achievements

Vic

Vic (3/54)

1

Reputation

  1. أهلا , عندي أكثر من وظيفة مسويها من زمان قلت انزلها لكم الان function convertToHijri(gYear, gMonth, gDay) local jd = math.floor(1461 * (gYear + 4800 + math.floor((gMonth - 14) / 12)) / 4) + math.floor(367 * (gMonth - 2 - 12 * math.floor((gMonth - 14) / 12)) / 12) - math.floor(3 * math.floor((gYear + 4900 + math.floor((gMonth - 14) / 12)) / 100) / 4) + gDay - 32075 local l = jd - 1948440 + 10632 local n = math.floor((l - 1) / 10631) l = l - 10631 * n + 354 local j = math.floor((math.floor((10985 - l) / 5316)) * math.floor((50 * l) / 17719)) + math.floor(l / 5670) * math.floor((43 * l) / 15238) l = l - math.floor((30 - j) / 15) * math.floor((17719 * j) / 50) - math.floor(j / 16) * math.floor((15238 * j) / 43) + 29 local m = math.floor((24 * l) / 709) local d = l - math.floor((709 * m) / 24) local y = 30 * n + j - 30 return y, m, d end الوظيفة واضحه من اسمها تحول لك التاريخ الميلادي إلى هجري مثال local hijriYear, hijriMonth, hijriDay = convertToHijri(2001, 1,19) outputChatBox("date: " .. hijriDay .. "/" .. hijriMonth .. "/" .. hijriYear) سويت هالوظيفة بحيث انها تحول لك بداية كل كلمة الحرف يكون كابيتل مثال : name fathername lastname تصير : Name Fathername Lastname function capitalizeWords(text) return text:gsub("(%S+)", function(word) local first = word:sub(1,1):upper() local rest = word:sub(2):lower() return first .. rest end) end المثال local name = capitalizeWords ( "name fathername lastname" ) print ( name )
  2. سلام عليكم الي عنده مشروع ويبي مبرمج او شيء يتواصل معي متفرغ d7ici#7218 بس اتمنى فكرة المشروح يكون عليها الكلام
  3. hello i want active txd and dff Without bearing the file on the other party -- Server addCommandHandler ( "LoadCar" , function ( player ) local txd1,dff1 = fileOpen ( ":car/576.txd" ) , fileOpen ( ":car/576.dff" ) if ( txd1 and dff1 ) then local txd,dff = fileRead ( txd1 , fileGetSize ( txd1 ) ) , fileRead ( dff1 , fileGetSize ( dff1 ) ) triggerLatentClientEvent ( player , "acceptCar" , 5000,false,player,txd,dff) print(tostring(fileGetSize ( txd1 ))) print(tostring(fileGetSize ( dff1 ))) fileClose ( txd1 ) fileClose ( dff1 ) end end ) -- Client addEvent ( "acceptCar" , true ) addEventHandler ( "acceptCar" , root , function ( t1 , d1 ) print("done1") txd1 = engineLoadTXD ( t1 ) dff1 = engineLoadDFF ( d1,576 ) engineImportTXD ( txd1, 576 ) engineReplaceModel ( dff1, 576 ) end ) sorry for bad language
  4. طيب اطرح لنا الي سويته عشان نقدر نساعدك
×
×
  • Create New...