Jump to content

GridList Dx


Recommended Posts

الجريد ليست صصعبةة جدا ومستحيل تقدر تسويها ويبي لها حسابات ومشوار

الموجود بالكومنتي dxGUI استخدم سكربت

:lol:

لمتا الواحد يقعد يقول صعبه

فاضي ماعندي شي

بس احتاج الفنكشات .

متى بتطور لاقعدت اسوي السهل

Link to comment

لول محسبها سهلة ؟

هي ريتنكقل وحسابات ورندر وبيند كي واشياء ثانية .. يعني الزبدة لا تحسبها سهلة ويمديكـ تسويها

شف اكواد السكربتات ذي .. ولو مداك تسوي زيها يكون كويس ذذ

https://community.multitheftauto.com/in ... ls&id=2136

https://community.multitheftauto.com/in ... ls&id=7436

Link to comment

طيب ياشباب

في احد جرب هاذا

https://community.multitheftauto.com/in ... ls&id=7436

واشتغل معه لاني جربته وماشتغل معي يقولي

Error: line 5 Bad Argument @cDx

function cDx:new(title,width,height,background,fontcolor,font,hovercolor) 
    assert((type(title) == 'string'),'Bad Argument @cDx:new [Expected stringt at argument 1 got '..type(title)..']') 
    assert((type(width) == 'number'),'Bad Argument @cDx:new [Expected number at argument 2 got '..type(width)..']') 
    assert((type(height) == 'number'),'Bad Argument @cDx:new [Expected number at argument 3 got '..type(height)..']') 
    assert((type(background) == 'function'),'Bad Argument @cDx:new [Expected function at argument 4 got '..type(background)..']') 
    assert((type(fontcolor) == 'function'),'Bad Argument @cDx:new [Expected function at argument 5 got '..type(fontcolor)..']') 
    assert((type(font) == 'string'),'Bad Argument @cDx:new [Expected stringt at argument 6 got '..type(font)..']') 
    assert((type(hovercolor) == 'function'),'Bad Argument @cDx:new [Expected function at argument 7 got '..type(hovercolor)..']') 
        local instance = {} 
        title = tostring(title) 
        width = tonumber(width) 
        height = tonumber(height) 
        background = background or tocolor(0,0,0,150) 
        fontcolor = fontcolor or tocolor(255,255,255,255) 
        font = tostring(font) or "default-bold" 
        hovercolor = hovercolor or tocolor(155,155,155,155) 
        curselected = false 
        show = false 
        list = {} 
        scroll = 0 
        di = 0  
    setmetatable(instance,self) 
    return instance 
end 
  
addEventHandler("onClientResourceStart",resourceRoot, 
function () 
window = cDx:new("Title",512,512,tocolor(0,0,0,150),tocolor(0,0,0,150),"default-bold",tocolor(255,255,255,255))    
end 
) 

Link to comment
لا تستخدم ذا .. فيه بقات وخربان ذذ

طيب بغيت اسالك الحين الثاني الي شغال ذا

وش سالفة فنكشاته

مهيب زي

selcteditem-itemtext

لو ابي اضيف مثلا اسماء الاعبين

كيف بتكون الطريقة ولو مثلا بضيف كلام ويحدده ويظغط زر

ياليت مثال لطريقة ,

Link to comment

شوف هاد مثال

حطة في ملف مع المود

local gridlist = dxCreateGridList(33, 258, 333, 251,false) 
 local row = dxGridListAddRow(gridlist,"                          #ffff00Pl#00ff00a#00ffffyer") 
dxGridListSetItemColorCoded (row,true) 
for i, player in ipairs (getElementsByType ("player")) do 
local Player1 = getPlayerName(player) 
dxGridListAddRow(gridlist,Player1) 
end 

Link to comment
لا تستخدم ذا .. فيه بقات وخربان ذذ

طيب بغيت اسالك الحين الثاني الي شغال ذا

وش سالفة فنكشاته

مهيب زي

selcteditem-itemtext

لو ابي اضيف مثلا اسماء الاعبين

كيف بتكون الطريقة ولو مثلا بضيف كلام ويحدده ويظغط زر

ياليت مثال لطريقة ,

يوم تحمل السكربت تلقى فيه ملف .. مسوي لك كل شي امثلة يعني

وبقلكـ برضو ذا بالجريد ليست حقه فيه بق كذا اتذكر .

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...