Jump to content

John Smith

Members
  • Posts

    656
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by John Smith

  1. You can do it by yourself. -- client addEventHandler("onClientPlayerStuntStart",root, function() setElementData(localPlayer,"stunting",true); end ); addEventHandler("onClientPlayerStuntFinish",root, function() setElementData(localPlayer,"stunting",false); end ); -- server or client function isPlayerStunting(player) return getElementData(player,"stunting") or false; end;
  2. Thanks Oh and sorry for not responding to the topic, I'm kinda busy, so i can make updates on this only on weekends Thanks for the suggestion, and I'm not quite sure what you meant.. Are you suggesting to show that full map image when a player completely zooms out the city due to client's far clip (setFarClipDistance) causing lag? That actually really depends on couple of stuff. The complete zoom out in God's Eye is not the whole map view, but rather complete city. I will make an ability to change far clip distance to lower/bigger values in case you want to reduce/improve the look of the SA Map Also, i believe that if you have a stable 60 fps on other servers, God's Eye could run stable at 60 fps as well (unless you increase far clip distance to insane value) Anyway thanks guys for your posts, if you have an idea or something or anything else useful to this, feel free to post it here I will make updates to God's Eye this weekend and share a video of new features too
  3. John Smith

    God's Eye

    Hello. I've wanted to show you something that I did while I was bored. I call it God's Eye. I'd say it's some kind of a satellite which let's you see the whole SA Map. It can be used as a spectator system (you can watch the SA World from sky just like a god). I have thought of making this 'system' for admins only and making more functions which would be simply manipulating the SA World as you like (again, gives you powers like if you were a god). Also, later on i will add tracking system in it, so you can lock-on somebody and the God's Eye will follow the target. So, what do you think? Should I add some functions to it? Should I release it when I do some more work on it? Also, I am really terrible at writing well designed threads so the whole topic might look like if a 5 year old kid did it, but the main point of the topic is to show something that i've done in couple of minutes, and if you have any suggestions for this as i will probably release it soon
  4. on luac.multitheftauto.com you also got obfuscation option (makes the code little bit harder to figure out and those decompile programs won't work on it) though you could implement your own encryption, it's not really hard.
  5. This question is exactly like if you went to facebook support site and asked them how to hack facebook lol you can't expect that somebody would just simply tell you how to bypass that script obfuscation (it's not that hard to bypass it but still)
  6. What's the point of releasing anything with 'serious bugs' ? and if it was "fixed" before, why didn't you fix it again and uploaded the fixed version? (answer: hardware failure thing is bullshit) Not to mention that code is not organised at all (except the parts of code which you copy-pasted from somewhere) and there are a lot of better and more optimised ways to do the code which you've uploaded here. For example, wtf is this? function onGuiClick() if ( source == dx_button1 ) then removeEventHandler("onClientRender", root, dx) guiSetVisible(dx_window, false) triggerEvent("teamSelector", localPlayer) end if ( source == yoi_button1 ) then guiSetVisible(yoi_window, false) showCursor(false) triggerServerEvent("setTeamUSA", localPlayer) triggerEvent("classUSA", localPlayer) end if ( source == yoi_button2 ) then guiSetVisible(yoi_window, false) showCursor(false) triggerServerEvent("setTeamRUS", localPlayer) triggerEvent("classRUS", localPlayer) end if ( source == button11 ) then triggerServerEvent("spawnUSA_class_assault", localPlayer) showCursor(true) guiSetVisible(window2, false) setElementData(localPlayer, "usa_assault", true) end if ( source == button22 ) then triggerServerEvent("spawnUSA_class_support", localPlayer) showCursor(true) guiSetVisible(window2, false) setElementData(localPlayer, "usa_support", true) end if ( source == button33 ) then triggerServerEvent("spawnUSA_class_recon", localPlayer) showCursor(true) guiSetVisible(window2, false) setElementData(localPlayer, "usa_recon", true) end if ( source == button1 ) then triggerServerEvent("spawnRUS_class_assault", localPlayer) showCursor(true) guiSetVisible(window, false) setElementData(localPlayer, "rus_assault", true) end if ( source == button2 ) then triggerServerEvent("spawnRUS_class_support", localPlayer) showCursor(true) guiSetVisible(window, false) setElementData(localPlayer, "rus_support", true) end if ( source == button3 ) then triggerServerEvent("spawnRUS_class_recon", localPlayer) showCursor(true) guiSetVisible(window, false) setElementData(localPlayer, "rus_recon", true) end if ( source == button111 ) then guiSetVisible(window3, false) setElementData(localPlayer, "m4", true) local team = getPlayerTeam(localPlayer) local usa = getTeamFromName("USA") local russia = getTeamFromName("Russia") if team == usa then triggerServerEvent("spawnUSA", localPlayer) showCursor(false) fadeCamera(true) setCameraTarget(localPlayer, localPlayer) elseif team == russia then triggerServerEvent("spawnRUS", localPlayer) showCursor(false) fadeCamera(true) setCameraTarget(localPlayer, localPlayer) end end if ( source == button222 ) then guiSetVisible(window3, false) setElementData(localPlayer, "ak47", true) local team = getPlayerTeam(localPlayer) local usa = getTeamFromName("USA") local russia = getTeamFromName("Russia") if team == usa then triggerServerEvent("spawnUSA", localPlayer) showCursor(false) fadeCamera(true) setCameraTarget(localPlayer, localPlayer) elseif team == russia then triggerServerEvent("spawnRUS", localPlayer) showCursor(false) fadeCamera(true) setCameraTarget(localPlayer, localPlayer) end end if ( source == button1111 ) then guiSetVisible(window4, false) setElementData(localPlayer, "mp5", true) local team = getPlayerTeam(localPlayer) local usa = getTeamFromName("USA") local russia = getTeamFromName("Russia") if team == usa then triggerServerEvent("spawnUSA", localPlayer) showCursor(false) fadeCamera(true) setCameraTarget(localPlayer, localPlayer) elseif team == russia then triggerServerEvent("spawnRUS", localPlayer) showCursor(false) fadeCamera(true) setCameraTarget(localPlayer, localPlayer) end end if ( source == button11111 ) then guiSetVisible(window5, false) setElementData(localPlayer, "sniper", true) local team = getPlayerTeam(localPlayer) local usa = getTeamFromName("USA") local russia = getTeamFromName("Russia") if team == usa then triggerServerEvent("spawnUSA", localPlayer) showCursor(false) fadeCamera(true) setCameraTarget(localPlayer, localPlayer) elseif team == russia then triggerServerEvent("spawnRUS", localPlayer) showCursor(false) fadeCamera(true) setCameraTarget(localPlayer, localPlayer) end end end addEventHandler("onClientGUIClick", root, onGuiClick) I am not writing this post as some hater, but rather telling you that if you want people to use your code or literally learn anything from it, you should make it look clean and optimised. And current state of it is like if you digged it from a trash can.
  7. lol i always thought it had to do something with our hands (if you know what i mean)
  8. Hello. I'm facing a problem. I can't find a way how to know when resource has finished downloading (down)loading files. I thought onResourceStart would be triggered after the resource files were (down)loaded, but onResourceStart seems to trigger when the download starts. I'm asking for help in here because i'm facing an error which says something similiar to unable to load dff/txd file before onClientFileDownloadComplete event has finished (when that error happens, resource files are still downloading) Is there a solution to this or should i create a custom downloader for scripts/files?
  9. Usually doing something like setElementData(localPlayer,"Country","US") changes ur country, just change localPlayer to element/player that you want to apply country to
  10. getAccount requires 2 arguments: - account name - password in some lines of code you got just account name in getAccount, and no password provided as 2nd argument
  11. First solution worked fine (never suspected it to be that file because many people use UltraThing for better graphics... and i had it disabled in it's settings as well..) Thanks a lot ccw
  12. Windows 10 Update is sent through 'waves', it comes even to pirated windows users, you just gotta wait or try to force the update (google how to force windows 10 update)
  13. Hey Recently i've been getting strange problems with my mta, there are a lot of them like: 1. Chat sometimes 'forgetting' to render half of lines while using pageup/pagedown 2. Text flickering in a very little time range (like if dx renders have been removed for 100 ms and returned back) 3.Flashes of screen every each seconds (starts at random times then procceeeds to repeat each few seconds) 4.Increase in far clip distance(?) and returning back to normal for a short interval ( http://imgur.com/NI9hdPA,vXr8kP5 - 2 images showing it) 5.FPS Issues (Starts at random time and keeps being at 30-40 (limit is 60) until i restart my computer) 6.There aren't any buttons to minimize/maximize/close mta client and only way to minimize mta is to click the 'hide all windows' button which is located usually next to where it says time on windows (bottom right corner), and then if i open any other window, mta will open with that window as well. This issue has started like few days ago, or max 1 week ago. I got Windows 10 Home I'd have posted the MTADiag log, but i've forgotten where i could download the program...
  14. It would also be nice that in resources folder there is each folder for each server and then that server resources into it's folder to avoid conflicts, like 1000 servers having resource scoreboard and then cache messes up a lot+it would be more organised that way if you know what i mean
  15. are you sure you typed the correct name (.htaccess) and your webserver is Apache? Yes. I don't know whether this could cause the issue, but let me explain how is my website setup I got my own domain, i pointed the domain towards my vps ip (so e.g mydomain.com redirects you to vps ip) on vps(debian 8 ) i have folder /var/www/html in html folder i place anything related to the site (e.g index.html file which loads when you visit e.g mydomain.com) however originally there hasn't been that .htaccess file, so i created it and used your lines of (code?) I don't really know why doesn't this work. I got apache service installed on my vps But the VPS shouldn't be the problem, many websites run on a vps or a dedicated server this forum might be the completely wrong place to ask this kind of questions, but i thought that there might be someone who knows this things, if anyone knows how i could solve this or where i can ask for help regarding this, please tell me
  16. I didn't originally have .htaccess file, so i created it and i put this, but i can still access anything with my browser is there any other way to do this?i don't know why doesn't this work..
  17. Yeah.. some programs/sites store their secret data like images or something on their private server though even if you had the path to that secret data, on browser it would simply deny the access or wouldn't load at all so i want that i can access files with fetchRemote, but accessing the file with browser should be blocked and idk how to rly do that
  18. hey guys umm so i got my site, and i can upload files like for example in folder test and put image test1.png in the folder and then i can access the image by typing in my browser mysite.com/test/test1.png and the image will be shown but i have a question: how can i restrict the file so that people can't use browser links to locate the file, but that fetchRemote can still download the image? is there a way? i just want that only my server can access some of my files on my websites i dont want somebody to discover my secret files and then simply download them (e.g images)
  19. Nice job man this is really great and useful!
  20. Not really. Instead of for example: writing 'thank you' to birthday threads, you could just press thank you button Somebody proposes an idea? Like/dislike button Somebody makes useful resource for the community? Like button These buttons could be used in a lot of situations. Also: instead of a poll in this topic, it would be easier if there was just like/dislike button
  21. setTimer(function() exports.msg:message("Let's try this way",source,255,255,0) end,23000,1)
  22. Hmhhh, how do I make my own? I don't want to includes the other resource. Any idea? By the way, thanks! Perhaps you could download that resource, check the code and see how it works?
×
×
  • Create New...