Jump to content

Awang

Members
  • Posts

    65
  • Joined

  • Last visited

Everything posted by Awang

  1. I changed my code a little bit, because as you can see, I have made some big mistakes in the last version. @LopSided_ I tried to use, but nothing is happening I have no errors... <script> $(document).ready(function(){ var eventName =""; var text = ""; $(this).on("onEditBoxGetValue",function() { text = $("#box").val(); mta.triggerEvent("onEditBoxValue"+eventName,text); }); $(this).on('onEditBoxCall',function(event,name,type){ eventName = name; $('#box').attr('type',''+type+''); }) ; }); </script> function dxEditbox(xb,yb,wb,hb,name,types) local boxweb = guiCreateBrowser(xb,yb,wb,hb,true,true,false) local bboxweb = guiGetBrowser( boxweb ) addEventHandler("onClientBrowserCreated", bboxweb, function() loadBrowserURL(bboxweb, "http://mta/ts_dx_core/web/editbox.html") end ) addEventHandler ( "onClientBrowserDocumentReady" , bboxweb ,function () executeBrowserJavascript(bboxweb, "$(this).trigger('onEditBoxCall',['"..name.."','"..types.."']);" ) end) return boxweb end Edit: Everythings work, because in executeBrowserJavascript()'s jquery command I used 'this' instead of 'document'... Thank you @LopSided_
  2. Hy guys! I tried to call a jquery event on my browser with executeBrowserJavascript() command, but exatly, nothing happened This is, how I tried: executeBrowserJavascript(bboxweb, "$().trigger('onEditBoxCall',['editbox','password']);" ) <script src="js/jquery-3.1.1.min.js"></script> <script> $(document).ready(function(){ var eventName =""; var text = ""; $(this).on("onEditBoxGetValue",function() { text = $("#box").val(); mta.triggerEvent("onEditBoxValue"+eventName,text); }); onEditBoxCall = ,function(event,name,type) { eventName = name; $('#box').attr('type',''+type+''); } }); </script> I tried to write kind of a guieditbox script, where I can declare in Lua, what type of editbox I want to call, and after get this value. Hope, you guys can help me.
  3. Awang

    Font Awesome

    When I wrote that I fix something in the meta, was this change, that I wrote it into.
  4. Awang

    Font Awesome

    Okay, I did something wrong,I checked once a time the meta and find the problem... now I have these 2 rectangle instead of the icons (( Username, Login))
  5. Awang

    Font Awesome

    <link rel="stylesheet" href="http://mta/ts_core/web/font-awesome/css/font-awesome.css" /> Here is my HTML code and the meta also <meta> <script src="main_loader.lua" type="client"/> <file src="web/download.html"/> <file src="web/login.html"/> <file src="web/css/style.css"/> <file src="web/css/style_l.css"/> <file src="web/css/users.png"/> <file src="web/css/adduser.png"/> <file src="web/images/logo.png"/> <file src="web/jquery/jquery-1.11.1.min.js"/> <file src="web/js/handler.js"/> <file src="web/js/handler_l.js"/> <file src="web/js/jquery.particleground.js"/> <file src="web/js/jquery.particleground.min.js"/> <file src="sound/loader.mp3"/> <file src="sound/buttonon.mp3"/> <file src="web/font-awesome/fonts/FontAwesome.otf"/> <file src="web/font-awesome/fonts/fontawesome-webfont.eot"/> <file src="web/font-awesome/fonts/fontawesome-webfont.svg"/> <file src="web/font-awesome/fonts/fontawesome-webfont.ttf"/> <file src="web/font-awesome/fonts/fontawesome-webfont.woff"/> <file src="web/font-awesome/fonts/fontawesome-webfont.woff2"/> <file src="web/font-awesome/less/animated.less"/> <file src="web/font-awesome/less/bordered-pulled.less"/> <file src="web/font-awesome/less/core.less"/> <file src="web/font-awesome/less/fixed-width.less"/> <file src="web/font-awesome/less/font-awesome.less"/> <file src="web/font-awesome/less/icons.less"/> <file src="web/font-awesome/less/larger.less"/> <file src="web/font-awesome/less/list.less"/> <file src="web/font-awesome/less/mixins.less"/> <file src="web/font-awesome/less/path.less"/> <file src="web/font-awesome/less/rotated-flipped.less"/> <file src="web/font-awesome/less/screen-reader.less"/> <file src="web/font-awesome/less/stacked.less"/> <file src="web/font-awesome/less/variables.less"/> <file src="web/font-awesome/scss/_animated.scss"/> <file src="web/font-awesome/scss/_bordered-pulled.scss"/> <file src="web/font-awesome/scss/_core.scss"/> <file src="web/font-awesome/scss/_fixed-width.scss"/> <file src="web/font-awesome/scss/_icons.scss"/> <file src="web/font-awesome/scss/_larger.scss"/> <file src="web/font-awesome/scss/_list.scss"/> <file src="web/font-awesome/scss/_mixins.scss"/> <file src="web/font-awesome/scss/_path.scss"/> <file src="web/font-awesome/scss/_rotated-flipped.scss"/> <file src="web/font-awesome/scss/_screen-reader.scss"/> <file src="web/font-awesome/scss/_stacked.scss"/> <file src="web/font-awesome/scss/_variables.scss"/> <file src="web/font-awesome/scss/font-awesome.scss"/> </meta> I tried what you sad my Hungarian testvér, but its not working
  6. Awang

    Font Awesome

    I did but nothing happening I write every css, font files, less and scss file.... Anyway, is there any other font icons what I can use in external way?
  7. Awang

    Font Awesome

    Okay, but if i download it, need I write every css and fonts files in the meta?
  8. Awang

    Font Awesome

    Hello guys! Last day I tried to use the font awesome's icons in the CEF. But unfortunatelly, it did'nt work when I call from the external link. Is there any way to use them?
  9. So with this 8-track technik, the player will not have a frame drop, am I sure?
  10. okay, I will try it Thank you Dealman
  11. I can see now... But I think, if I want I can update the second position less time, for example each third frame... Am I sure?
  12. So, if I understand clearly, if the player have, for example 30fps, its decrease to 15fps?
  13. Hello everybody! I'm new in the foum, and I have a question for you guys ( what a suprise ) . I found this video on the internet, but I haven't got any idea, how the scripter made this.... Have you got any ideas guys? I really want to make something like this, couse I have an own city in SA and I haven't better idea, how to make possible the minimap Thank you guys for our help, and in last case, sorry for my bad English
×
×
  • Create New...