Imposter Posted August 25, 2013 Share Posted August 25, 2013 Is it possible to open a browser using the game, going to a certain web address? I am trying to make an online store for my server. Link to comment
xXMADEXx Posted August 25, 2013 Share Posted August 25, 2013 Is it possible to open a browser using the game, going to a certain web address? I am trying to make an online store for my server. No, its not. But you can use setClipboard. Link to comment
Dealman Posted August 25, 2013 Share Posted August 25, 2013 No, its not. But you can use setClipboard. It actually is possible, I believe I saw someone whom made it possible to use Google through MTA or something like that. Point is yes, it is possible. But it would also be a whole lot of work to do. And you're most likely to be in need of understanding either PHP or HTML, or even both. Link to comment
bandi94 Posted August 25, 2013 Share Posted August 25, 2013 nope but you can use SQL , when somebody buy on your webpage , then add that object to a database , then the server will check that database if there is any new buy if yes , store it on accountData/ SQLite , and remove it from the webpage SQL database. Link to comment
xXMADEXx Posted August 25, 2013 Share Posted August 25, 2013 No, its not. But you can use setClipboard. It actually is possible, I believe I saw someone whom made it possible to use Google through MTA or something like that. Point is yes, it is possible. But it would also be a whole lot of work to do. And you're most likely to be in need of understanding either PHP or HTML, or even both. Actually, now that you mention PHP, i believe I know how to make it. lol (Not sure if it'll work, but i'll try it.) Link to comment
EstrategiaGTA Posted August 25, 2013 Share Posted August 25, 2013 It isn't possible with Lua. Link to comment
bandi94 Posted August 25, 2013 Share Posted August 25, 2013 Yes it is. 1. Downloading via php the webpage source. 2. Downloading all elements ( photos,buttons,etc). 3. Using a recognizer algoritm writen in LUA witch will return all elements position(x,y,w,h) from the downloaded source code (step 1) 4. Using the returned values from the algoritm you can rebuild the page with dxDraw. Still to much work after that you need to check every button,link type element , when it's clicked via PHP check that page and start the whole process from setp 1 with the new page. On short it's possible but it's a very big project , also request PHP/HTML skill's. Link to comment
EstrategiaGTA Posted August 25, 2013 Share Posted August 25, 2013 Not possible with Lua only. Link to comment
bandi94 Posted August 25, 2013 Share Posted August 25, 2013 I never sayd only with LUA. But it's possible to make it for MTA with : Lua + php Link to comment
DiSaMe Posted August 25, 2013 Share Posted August 25, 2013 Use fetchRemote to download the data, then parse the HTML (and optionally CSS/JavaScript) data in Lua, that's how it goes. I don't see a reason why anything else would be needed. Link to comment
EstrategiaGTA Posted August 25, 2013 Share Posted August 25, 2013 Actually I think he has asked about using Lua only. So, not possible. Link to comment
Imposter Posted August 25, 2013 Author Share Posted August 25, 2013 Well, you guys misunderstood, I meant, redirecting a person to a webpage by opening their browser, like Chrome. I know I could make a parser myself but that would be lengthy. Link to comment
FatalTerror Posted August 25, 2013 Share Posted August 25, 2013 Well, you guys misunderstood, I meant, redirecting a person to a webpage by opening their browser, like Chrome. I know I could make a parser myself but that would be lengthy. You can't. Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now