Jump to content

xDog

Members
  • Posts

    5
  • Joined

  • Last visited

Details

  • Location
    Austria

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

xDog's Achievements

Vic

Vic (3/54)

0

Reputation

  1. any news regarding this? I am facing the same issue since yesterday. Reinstalled MTA 5 times, redownloaded my GTA:Sa, moved it to another folder, reinstalled directx and runtime.
  2. your problem can have the following issues: your webserver isn't allowed to use fsockopen or the webscript doesnt have enought rights the ip and HTTP-Port you have entered are wrong (for HTTP port check again your mtaserver.conf) in case you need some more help just pm me
  3. Hello and welcome, today I wanted to present you a short resource I have made. It is a kind of online playerlist where you can see which players are available on a server. I know it's all currently quite basic but it was a creation within some hours and I want to improve this resource ofc. What are the requirements: you need a working webserver (tested with nginx and apache) you need a working mta server, an admin account for the webviewer and admin rights for the resource HTTP-Port of your MTA-Server (you can find it in your mtaserver.conf) Whats currently implemented: basic installation script to make you the configuration as easy as possible (on the webpage, installer script needs atleast rights to create a config file) simple online viewer (playername (colorcode support), current playtime on the server, ping) Future work?: Support for teams Implementation of basic chat connection between server and website more information about the MTA-server itself Screens: Where to download and test?: Click here Feedback welcome!
  4. HI Community, I am quite new to using CEF and therefore I have a problem with the function executeBrowserJavascript. Heres my code from LUA function JSHandler:execute(event,arg) if self.browser then local jsString if type(arg) == "table" then jsString = toJSON(arg) elseif type(arg) == "number" or type(arg) == "string" then jsString = tostring(arg); end local query = self.browser:executeJavascript(("App.callEvent('%s','%s')"):format(event,jsString)); if query then return true else self:debug("Please check your script. There must be some missing part!") end end end and my JS Code ApplicationHandler.prototype.registerEvent = function(eventName,handler){ eventHandlers[eventName] = handler; return true; } ApplicationHandler.prototype.callEvent = function(eventName,args){ if(eventHandlers[eventName]){ eventHandlers[eventName].apply(null, args); } } ApplicationHandler.prototype.__click = function(){} App = new ApplicationHandler(); //Event App.registerEvent("getPlayers",function(arg){Playerlist.getPlayers(arg);}); and it shows me the following error: [Browser]:Console: UncaughtReferenceError: App is not defined(). Maybe you could help me with this problem, thx in advance!
×
×
  • Create New...