Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 29/10/21 in all areas

  1. في شي باللعبة اسمه الاكسبورت، هذا راح يخليك تتصل بين السكربتات بالبداية أصنع فنكشن في السكربت يلي راح تتصل له openSettingsWindow الفنكشن مثلاً خلينا نقول يفك اللوحة خلينا نقول اسم الفنكشن خلصت منه الآن تحتاج تضيفه في ملف الميتا عشان تقدر تستعمله في السكربتات الأخرى <export function="openSettingsWindow" type="client"/> الآن بكل بساطة تستعمل الأكسبورت من السكربت الأخر مثلاً إذا جيت تضغط زر تضيف فقط exports.resourceName:openSettingsWindow() resourceName هو اسم السكربت يلي راح تتصل فيه openSettingsWindow اسم الفنكشن في السكربت الآخر call طبعا هو ذا اسم الفنكشن الأساسي .تقدر تشوف بصفحته أمثلة وشرح أكثر، لكن له إستعمال اخر يخليك تكتب اسم السكربت أسهل لك ملاحظة: الاكسبورت يكون فقط في نفس الجانب فقط كلاينت-كلاينت / سيرفر-سيرفر triggerEvent يمديك أيضاً تستعمل الأيفنتات عبر فنكشن
    1 point
  2. It looks like you can create "Normal GUI" with your "geditor" resource and then automatically convert it to dgs using a built-in dgs tool. I think that @xLive or @thisdp could assist you fully in this regard. There even are example commands on the wiki page. Would you mind trying it out?
    1 point
  3. Olá, boa tarde! Primeiramente, sempre que adicionar um código no fórum, use o botão <code> para facilitar a visualização. O triggerClientEvent tem como 1° argumento opcional o client que você deseja acionar o evento. No caso, como você não definiu um destinatário, por padrão vai para todos os players (root). Para corrigir, mude de: triggerClientEvent ("OpenPanel", getRootElement()) Para: triggerClientEvent (player, "OpenPanel", getRootElement()) Leia mais na página da wiki triggerClientEvent
    1 point
  4. That is true, the current Slipe (which we call "Slipe Lua") translates the C# code to Lua before running it. But this still gives you plenty of benefits. We are however also working on a way to run native C# code on an MTA Server, which we are doing by creating the MTA server itself from scratch.
    1 point
×
×
  • Create New...