Jump to content

Search the Community

Showing results for tags 'callremote'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Multi Theft Auto: San Andreas 1.x
    • Support for MTA:SA 1.x
    • User Guides
    • Open Source Contributors
    • Suggestions
    • Ban appeals
  • General MTA
    • News
    • Media
    • Site/Forum/Discord/Mantis/Wiki related
    • MTA Chat
    • Other languages
  • MTA Community
    • Scripting
    • Maps
    • Resources
    • Other Creations & GTA modding
    • Competitive gameplay
    • Servers
  • Other
    • General
    • Multi Theft Auto 0.5r2
    • Third party GTA mods
  • Archive
    • Archived Items
    • Trash

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Member Title


Gang


Location


Occupation


Interests

Found 5 results

  1. Hi, I would have reported this on the bug page, but I lost my password and restoring somehow doesn't work at the moment. The problem is, when using the queueName argument of the callRemote function, it just times out. Without using a queueName, it works fine. Bonsai
  2. Hi, I have a problem with the callremote function. When I use the URL of my API that I made in the browser, I get an instant result. When I call this URL in MTA using callremote, it takes ages until I get a response, or it will just time out. Does anyone know what could be causing this? The URL works perfectly fine in a browser, but in MTA it just takes soooo long. I'm not using the MTA php sdk. Bonsai
  3. Hello everyone Today I've finished my new script : GCSS Details about this script : This is a system which allows you to chatting with other players on another server So when you open the panel, you will see on the left : The players on your current server On the right it's the Messages box, You will receive the messages from the players on your server and the players on the second server And in : Manage GCSS Tab which is for admins you will see a place to update admin message & Check new updates of the script Also you've a smiles in the script : Emoji window Note : Minimum MTA:SA Version to run all features is : 1.5.4 . _________________________________________________________________________________________________ Other Features : You can customize your messages color, All players will see the new color on each servers ( Default color is White ). You can press on "Do Not Disturb[ Silent Mode ]" checkBox to mute the alerts of the system and chatBox messages. _________________________________________________________________________________________________ Tutorial about how to use the script : Note : Do not edit the resource name, to avoid issues. 1- Write this code in a blank space in the ACL file for each servers : <group name="OutRPCGroup"> <acl name="OutRPC" /> <object name="resource.GCSS_Professional" /> </group> <acl name="OutRPC"> <right name="function.callRemote" access="true" /> </acl> <group name="InRPCGroup"> <acl name="InRPC" /> <object name="user.http_guest" /> </group> <acl name="InRPC"> <right name="resource.GCSS_Professional.http" access="true" /> </acl> 2- Go to "Settings.lua" file and edit the following : adminGroup_Permissions = 'Admin'; -- ***Edit this group name to your Admins group to give full permissions / leave if it's the same name. ManageGCSS_AccessTable = { 'Console', 'Admin', 'GCSS_Manager' }; -- ***Edit : This is the groups which can access "Manage GCSS" tab. local server_ip = '127.000.0.000:22005'; -- ***Put the server ip & port for each server you want to communicate with. -- Do not edit the codes below. addEvent( 'onServerSendMessage', true ) addEventHandler( 'onServerSendMessage', root, function( message ) local name = getPlayerName( source ) local data = getElementData( source, 'GCSS:MessageColor' ) local message = '[onPort:'..getServerPort( )..'][ '..name..' ] : '..message callRemote( server_ip, 'default', 10, 10000, getResourceName( getThisResource( ) ), 'SendGlobalMessage', callBack, message, data[1], data[2], data[3] ) triggerClientEvent( root, 'onClientReceiveMessage', source, message, data[1], data[2], data[3] ) end ) Note : You need to install the resource on each servers by use the following : On the first server : Write the ip & port of the second server & Run the resource On the second server : Write the ip & port of the first server & Run the resource _________________________________________________________________________________________________ Note : You can found the key to open the script in : "OpenKey.lua" file. _________________________________________________________________________________________________ Some pictures : Main panel & Customize panel & Emoji panel __________ Manage GCSS Tab _________________________________________________________________________________________________ Note : All shared GCSS Scripts are Demo, To Purchase full open source script or get a special edits : Contact the programmer[Me] on E-mail : [email protected] or [email protected] . *Purchase Price : $5 *Current version is : 1.0.0 *Download : Press on me :). Note : If you have any issues, please write a comment. If you have a new ideas to develop the script, please write a comment on the topic Do not forget to rate the script by percentage% in a comment Thanks.
  4. function outputChatBoxRemote ( playerName, message, type, serverport ) outputChatBox ( "From " .. playerName .. " on " .. serverport .. ": " .. message ) return "hello sailor" end function finishedCallback( responseData, errno ) responseData = tostring(responseData) if responseData == "ERROR" then outputDebugString( "callRemote: ERROR #" .. errno ) elseif responseData ~= "hello sailor" then outputDebugString( "callRemote: Unexpected reply: " .. responseData ) else end end function playerChat ( message, type ) callRemote ( "87.229.77.40:22030", getResourceName(getThisResource()), "outputChatBoxRemote", finishedCallback, getPlayerName(source), message, type, getServerPort() ) end addEventHandler ( "onPlayerChat", getRootElement(), playerChat ) This is the code, but does not working.. what wrong?
  5. السلام عليكم ورحمة الله تعالى وبركاته اليوم إنتهيت من المود الجديد : GCSS معلومات أكثر عن هذا المود : هذا نظام متكامل يمنحك إمكانية التواصل مع لاعبين آخرين على سيرفر آخر عند فتح اللوحة ستجد على اليسار قائمة اللاعبين داخل سيرفرك الحالي على اليمين ستجد صندوق الرسائل الذي ستستقبل فيه الرسائل من لاعبين السيرفر الذي أنت فيه وأيضا استقبال الرسائل من لاعبين السيرفر الآخر وفي تاب Manage Gcss ستجد مكان لتحديث رسالة الأدمن وفحص التحديثات الخاصة بالمود أيضا توجد سمايلات داخل السكربت : Emoji window ملاحظة : أدنى إصدار من الأون لاين لتشغيل المود هو : 1.5.4 . _________________________________________________________________________________________________ مميزات اخرى : تستطيع تخصيص لون رسائلك, جميع اللاعبين سيرون اللون الذي تقوم بوضعه : اللون الإفتراضي هو اللون الأبيض تستطيع الضغط على "Do Not Disturb[ Silent Mode ]" لمنع التنبيهات ورسائل الشات _________________________________________________________________________________________________ تعليمات حول كيفية إستخدام المود : ملاحظة : لا تقم بتعديل إسم المود, لتفادي الأخطاء والمشاكل. 1- أكتب الكود ادناه في مكان فارغ في ملف الأسل لكل من السيرفرين الذي تود إتصال الرسائل مابينهم : <group name="OutRPCGroup"> <acl name="OutRPC" /> <object name="resource.GCSS_Professional" /> </group> <acl name="OutRPC"> <right name="function.callRemote" access="true" /> </acl> <group name="InRPCGroup"> <acl name="InRPC" /> <object name="user.http_guest" /> </group> <acl name="InRPC"> <right name="resource.GCSS_Professional.http" access="true" /> </acl> 2- إذهب إلى ملف "Settings.lua" وقم بتعديل التالي : adminGroup_Permissions = 'Admin'; -- ***قم بتعديل هذا الإسم إلى اسم قروب الأدمن لإعطاء كامل الصلاحيات / إتركه إذا كان الإسم نفسه. ManageGCSS_AccessTable = { 'Console', 'Admin', 'GCSS_Manager' }; -- ***تعديل : هذه المجموعات التي تستطيع تفعيل تاب "Manage GCSS". local server_ip = '127.000.0.000:22005'; -- ***ضع الأيبي & البورت لكلا السيرفرات الذي تود إتصالهم معا. -- Do not edit the codes below. addEvent( 'onServerSendMessage', true ) addEventHandler( 'onServerSendMessage', root, function( message ) local name = getPlayerName( source ) local data = getElementData( source, 'GCSS:MessageColor' ) local message = '[onPort:'..getServerPort( )..'][ '..name..' ] : '..message callRemote( server_ip, 'default', 10, 10000, getResourceName( getThisResource( ) ), 'SendGlobalMessage', callBack, message, data[1], data[2], data[3] ) triggerClientEvent( root, 'onClientReceiveMessage', source, message, data[1], data[2], data[3] ) end ) ملاحظة : تحتاج إلى تركيب المود في كل من السيرفرين الذي تود إيصال الرسائل بينهم وذلك بإستخدام التالي : : على السيرفر الأول : قم بكتابة الايبي & البورت الخاص بالسيرفر الثاني وقم بتشغيل المود على السيرفر الثاني : قم بكتابة الايبي & البورت الخاص بالسيرفر الأول وقم بتشغيل المود _________________________________________________________________________________________________ ملاحظة : تستطيع إيجاد زر فتح اللوحة وتعديله في ملف : "OpenKey.lua". _________________________________________________________________________________________________ بعض الصور : اللوحة الرئيسية ولوحة تعديل لون رسائلك, ولوحة السمايلات __________ Manage GCSS تاب _________________________________________________________________________________________________ ملاحظة : كل مودات GCSS هي إصدارات تجريبية, لشراء الإصدار الكامل المفتوح المصدر أو الحصول على تعديلات خاصة : : قم بمراسلة المبرمج[انا] على الإيميل : [email protected] أو [email protected] . *سعر الشراء : $5 *الإصدار الحالي هو : 1.0.0 التحميل : اضغط هنا Note : اذا كان لديك أية مشاكل, قم بكتابة تعليق. اذا كان لديك أي إقتراحات لتطوير المود, قم بكتابة تعليق لا تنسى تقييم المود بنسبة مئوية% في تعليق شكرا.
×
×
  • Create New...