Jump to content

Business Problem


nineteenrp

Recommended Posts

I have a problem with the business system.

When we interact with this system prepared by our developer, only the mouse icon appears on the screen of all of us, but he and other test member experience this problem. (only 1 test member)

We run our game mode both on the developer's server and on our own. Developer is not having any problems, but we cannot access the workplace menu on either server. We have a problem when we do this test with many test team members from the Netherlands, Turkey, Albania.

The code where the problem is:The code where the problem is: **BrowserManager.LoadBrowserModule(BrowserModules.PropertyInformation, propertyJson, RAGE.Game.Ui.GetStreetNameFromHashKey((uint)streetName), (int)buildingType, args[2].ToString(), Convert.ToBoolean(args[3]));**

Where this code interacts is,Where this code interacts is,

        private void PreloadBrowserModules()
        {
            // Initialize the collection with the modules
            AvailableModules = new Dictionary<BrowserModules, BrowserModule>()
            {
                { BrowserModules.Initialize, new BrowserModule("initializeBrowserLanguage", true, false) },
                { BrowserModules.MenuLoader, new BrowserModule("loadMenu", true, true) },
                { BrowserModules.HelpWindow, new BrowserModule("loadHelpWindow", true, true) },
                { BrowserModules.PropertyInformation, new BrowserModule("showPropertyInformation", true, true, new int[] { 12, 13, 14, 15, 16, 17, 22, 24, 25 }) },
                { BrowserModules.Catalog, new BrowserModule("initializeCatalog", true, true) },
                { BrowserModules.ClothesShop, new BrowserModule("initializeClothesShop", true, true) },
                { BrowserModules.AdminPanel, new BrowserModule("openAdminPanel", true, true) }
            }; 
        }

In continuation of this,

mp.events.add('showPropertyInformation', (propertyJson, address, propertyType, typeDescription, canManage) => {

    console.log('propertyJson:' + propertyJson);
    console.log('address:' + address);
    console.log('propertyType:' + propertyType);
    console.log('typeDescription:' + typeDescription);
    console.log('canManage:' + canManage);

    loadModule('property', 'propertyInformation').then(() => {
        // Bind the required events
        document.getElementById('property-enter').addEventListener('click', () => mp.events.call('EnterProperty'), true);

        // Show the data in the menu
        showInformation(JSON.parse(propertyJson), address, propertyType, typeDescription, canManage);
    });
});

    console.log('propertyJson:' + propertyJson);
    console.log('address:' + address);
    console.log('propertyType:' + propertyType);
    console.log('typeDescription:' + typeDescription);
    console.log('canManage:' + canManage);

In the section, log messages do not drop. In short, this code does not work. Is there anyone have an idea?

Edited by nineteenrp
Link to comment
Share on other sites

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...