Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 07/01/19 in Posts

  1. مسكين الي ماعنده احمد .
    2 points
  2. We are doing more or less the same. The main difference is that I am building a higher object tree. Technically tables in tables. The one of the race resource is just one layer. Example. clown = { animation = { sleep = function () end, dance = function () end }, movement = { run = function () end, walk = function () end, fly = function () end }, title = { set = function () end, get = function () end, remove = function () end } } A clown can do animations, movements and have a title. This example is used for single clown, without using the hidden variable self.
    1 point
  3. Yes that would indeed happen. There is no predefined variable, because each loaded map in a single resource has it's own mapRoot. See image: (there are two maps on one resourceRoot) Function to get it: https://wiki.multitheftauto.com/wiki/GetResourceMapRootElement You might also be able to get it with: https://wiki.multitheftauto.com/wiki/GetElementChildren Which only takes the direct children of an element. This will give you the root of all elements created by scripting: (No pre-defined variable for some unknown reason) https://wiki.multitheftauto.com/wiki/GetResourceDynamicElementRoot
    1 point
  4. Setting each to dimension="-1" should make the objects visible in all dimensions.
    1 point
  5. https://forum.4acm.net/ سجلو للمستقبل الجيد
    1 point
  6. 1 point
  7. السلام عليكم ورحمة الله وبركاته dxDrawMaterial3D syntax dxDrawMaterial3D(x,y,z,w,h,Material,images,...) Material : "Sphere" see video by medo7 "Box" see video by Ren712 "Triangle" Source Code: local images = dxCreateTexture(""); function dxDrawMaterial3D(x,y,z,w,h,Material,images,...) if Material == "Sphere" then local segAngle , radius = 360 / 30 , 0.5 ; local fX, fY, tX, tY; for i = 1, 360 do fX = x + math.cos( math.rad( segAngle * i ) ) * radius ; fY = y + math.sin( math.rad( segAngle * i ) ) * radius ; tX = x + math.cos( math.rad( segAngle * (i+7) ) ) * radius ; tY = y + math.sin( math.rad( segAngle * (i+7) ) ) * radius ; end w,h = 1 ; return dxDrawMaterialLine3D(fX, fY, z+h, tX, tY, z+h, images,w,tocolor(0,0,0,100),false) or "Sphere" ; elseif Material == "Box" then local w2,h2 = math.floor(4* math.sin( h+ math.rad(100) ) ) ; return dxDrawMaterialLine3D(x,y,z, w2, h2, z, images, h,tocolor(0,0,0,100),false) or "Box" ; elseif Material == "Triangle" then t3 = 360/3 ; tX2 = x + math.cos( math.rad( t3 * (h+1) ) ) / w ; tY2 = y + math.sin( math.rad( t3 * (h+1) ) ) / w ; tZ2 = z + math.tan( math.rad( t3 * (h+1) ) ) / w ; return dxDrawMaterialLine3D(x,y,z, tX2, tY2, tZ2, images, h,tocolor(0,0,0,100),false) or "Triangle" ; end end Example addEventHandler("onClientPreRender", root, function() dxDrawMaterial3D(0,0,5,5,5,"Sphere","logo.png") end)
    1 point
  8. Khadeer khan aik copy cat hai jis ke dimagh main apne ideas nahin hain. Baki 10 saal kai bachoon ki tarhan ye bhi Grafuroam ka clone bana raha hai. Khadeer bhai main apko suggest karta hoon apne ideas ka koi server bhanao.
    1 point
  9. @aL.Kfo مع احترامي لك بس المود هو مساويه ان شاء الله بخلية يطلع كل ثانية في الشات حقوقة هو ساواه و نشره اذا عجبك حملة و اذا ما عجبك ما لك تتدخل فيه و اشي اكيد الواحد لما يساوي مود بكون يا اما عشين يشهر نفسة يا اما عشين الناس تستفيد يا عشين الثنين مع بعض فكل واحد حر ايش بده يساوي ____________ بتوفيق اخوي استمر
    1 point
  10. تسريحة الشعر اسمها قزع
    0 points
×
×
  • Create New...