rouzbeh_TopGTA

Members
  • Content Count

    19
  • Joined

  • Last visited

Community Reputation

0 Neutral

About rouzbeh_TopGTA

  • Rank
    Square

Details

  • Gang
    left

Recent Profile Visitors

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

  1. hi guys im thinking about how i can create a nice script like deadline mod in gta v work fine in mta any idea to how to create that? my idea is get player position every 0.2 seconds and draw 3D lines between them but i don't know hot to detect on hit to blown up the bike! i saw this and this is Exactly what i want: Any idea or link plz ?!
  2. hi i have server with cef (html,css,js) login panel all players are ok with that but one of my users cant see login panel and he just see a white screen login panel's music also play for him its not a scripting problem i know cuz i have a lot of players they didn't had any problems with that... he is using mta latest version whats the problem?
  3. local page = "http://mta/local/index.html" local screenWidth, screenHeight = guiGetScreenSize() initBrowser = guiCreateBrowser(0, 0, screenWidth, screenHeight, true, true, false) theBrowser = guiGetBrowser(initBrowser) addEventHandler("onClientBrowserCreated", theBrowser, function() loadBrowserURL(source, page) guiSetInputEnabled(true) sound = playSound("files/login.mp3", true) setSoundVolume(sound, 0.8) addNotification("Please login or create a new account!", "info") end ) client - be triggered from js: function clientClickLogin (user, pass, rem) playSound( "files/click.mp3" ) if user and pass then if ( string.gsub ( user, ' ', '' ) ~= '' and string.gsub ( pass, ' ', '' ) ~= '' ) then if ( string.find ( user, '%s' ) ) then return addNotification ( "Spaces (' ') are not allowed in the username.", "error" ) elseif ( string.find ( pass, '%s' ) ) then return addNotification ( "Spaces (' ') are not allowed in the password.", "error" ) end rem = tonumber(rem) if rem == 1 then data.remember.clicked = true elseif rem == 2 then data.remember.clicked = false end triggerServerEvent ( "Login:onClientAttemptLogin", localPlayer, user, pass ) clicked = true else addNotification("A Username And Password Are Required To Access The Server.", "warning") end else addNotification("A Username And Password Are Required To Access The Server.", "warning") end end addEvent("clientClickLoginEvent", true) addEventHandler("clientClickLoginEvent", root, clientClickLogin) js: function loginTrigger() { var UsernameValue = $( "#UserLogin" ).val(); var PasswordValue = $( "#PasswordLogin" ).val(); if(document.getElementById("rememberme").checked) { mta.triggerEvent("clientClickLoginEvent", UsernameValue, PasswordValue, 1) }else { mta.triggerEvent("clientClickLoginEvent", UsernameValue, PasswordValue, 2) } } html: <form action="javascript:loginTrigger()" method="post"> <input id="UserLogin" type="text" name="u" placeholder="Username" required="required" /> <input id="PasswordLogin" type="password" name="p" placeholder="Password" required="required" /> <input id="rememberme" type="checkbox" /><img class="remember" src="files/remember.png" /> <button type="submit" class="btn btn-primary btn-block btn-large">Login</button> </form>
  4. webbrowser resource Work in my login panel, when u click on login or register button its trigger a event from js to lua with mta 1.5.3 login/register buttons didnt work! ( html and all files are local )
  5. My Login Panel working with HTML and JS , i tried mta 1.5.3 and then login panel (java script) not work!
  6. Whats the :O Going ON? why you disabled CEF in mta 1.5.3? im sure me and a lot of other server owners Never Update to 1.5.3 if it Still Disabled...
  7. as i know, mta download all resources at same time then load them together, its not load resources one by one... example of what i want: you join my server for first time and you should download resources for 50mb... you first download and load minigame resource for 1mb and then download other 49mb resources... so while you are downloading, you can play a minigame...
  8. but its clientside! and client resources all download together, i need to set that resource download first and load in client, then download other resources... how?
  9. hi, any idea to how to show skins in a menu (rotating skin) in a side of screen without loading image file?
  10. Hi ! I like to have a minigame for players who downloading resources (like some servers)... i think its name : Advanced Download Screen any idea how do that?
  11. Very Big Thanks, You solved my problem! i like u
  12. Hi, i have problems with executeBrowserJavascript() im working on a html login panel working with java script, and i want create a rememberme checkbox... index.html: <form action="javascript:loginTrigger()" method="post"> <input id="UserLogin" type="text" name="u" placeholder="Username" required="required" /> <input id="PasswordLogin" type="password" name="p" placeholder="Password" required="required" /> <input id="rememberme" type="checkbox" /><img class="remember" src="files/remember.png" /> <button type="submit" class="btn btn-primary btn-block btn-large">Login</button> </form> client: initBrowser = guiCreateBrowser(0, 0, screenWidth, screenHeight, true, true, false) theBrowser = guiGetBrowser(initBrowser) executeBrowserJavascript ( theBrowser, "document.getElementById('rememberme').checked = true ;" ) this should check my checkbox if player using rememberme option, but executeBrowserJavascript not work! whats the problem? other lines is okay! just executeBrowserJavascript not work!