JeViCo Posted August 17, 2018 Share Posted August 17, 2018 Hello everyone. Is it possible? Link to comment
Simple0x47 Posted August 17, 2018 Share Posted August 17, 2018 You could try by making use of SASS. Link to comment
JeViCo Posted August 17, 2018 Author Share Posted August 17, 2018 53 minutes ago, Simple01 said: You could try by making use of SASS. What is SASS ? Link to comment
Moderators IIYAMA Posted August 17, 2018 Moderators Share Posted August 17, 2018 (edited) Write with JavaScript? https://wiki.multitheftauto.com/wiki/ExecuteBrowserJavascript Ofcourse you can't protect it 100%, but atleast you can keep your HTML files almost empty. Making it beginner proof. SASS is unrelated. (It is a kind of advanced css format that will be converted to css after being compiled) Edited August 17, 2018 by IIYAMA Link to comment
Simple0x47 Posted August 17, 2018 Share Posted August 17, 2018 3 hours ago, JeViCo said: What is SASS ? Look just make your html files with cache="false" Link to comment
JeViCo Posted August 17, 2018 Author Share Posted August 17, 2018 14 minutes ago, Simple01 said: Look just make your html files with cache="false" it works only with scripts 3 hours ago, IIYAMA said: SASS is unrelated. (It is a kind of advanced css format that will be converted to css after being compiled) ok i understand now 3 hours ago, IIYAMA said: Write with JavaScript? https://wiki.multitheftauto.com/wiki/ExecuteBrowserJavascript Ofcourse you can't protect it 100%, but atleast you can keep your HTML files almost empty. Making it beginner proof. Maybe. But i'm not sure that people can use it several times. Even if i download it again, someone'll steal it while menu is open. Also i think that people'll not able to interact with html if it doesn't exists(tried with fileDelete) Link to comment
Discord Moderators Pirulax Posted August 17, 2018 Discord Moderators Share Posted August 17, 2018 The way I did it was I injected everything from LUA with executeBrowserJavaScript. Nice and easy solution.(You can inject everything with JS actually, css, JS, HTML) Link to comment
Moderators IIYAMA Posted August 17, 2018 Moderators Share Posted August 17, 2018 Html/css/js is not made to be private. But what you can do: If you want to protect the interaction, you will have to write it with some more back-end or wire the JavaScript with lua. Link to comment
Discord Moderators Pirulax Posted August 17, 2018 Discord Moderators Share Posted August 17, 2018 You can't change the css/js/html files because their hash is checked before load(.html are checked by MTA, but you can also add check for other's(js, and css with the 'hash' attribute). Link to comment
Simple0x47 Posted August 17, 2018 Share Posted August 17, 2018 4 hours ago, JeViCo said: it works only with scripts ok i understand now Maybe. But i'm not sure that people can use it several times. Even if i download it again, someone'll steal it while menu is open. Also i think that people'll not able to interact with html if it doesn't exists(tried with fileDelete) It doesn't work only with scripts. Link to comment
JeViCo Posted August 17, 2018 Author Share Posted August 17, 2018 Just now, Simple01 said: It doesn't work only with scripts. it downloads anyway Link to comment
Simple0x47 Posted August 17, 2018 Share Posted August 17, 2018 1 hour ago, JeViCo said: it downloads anyway Forget what I've said. You are right. Link to comment
Dimos7 Posted August 17, 2018 Share Posted August 17, 2018 Try put download to false in meta Link to comment
Discord Moderators Pirulax Posted August 17, 2018 Discord Moderators Share Posted August 17, 2018 Lmao. Link to comment
JeViCo Posted August 18, 2018 Author Share Posted August 18, 2018 17 hours ago, Simple01 said: Forget what I've said. You are right. ok 16 hours ago, Dimos7 said: Try put download to false in meta come on, we've just finished talking about that Link to comment
Simple0x47 Posted August 19, 2018 Share Posted August 19, 2018 On 18/8/2018 at 16:36, JeViCo said: ok come on, we've just finished talking about that Embed the html code in Lua, then create a temporal file into the clientside and after being used you delete it. But you can also try to execute that code directly without creating any file. Link to comment
Discord Moderators Pirulax Posted August 20, 2018 Discord Moderators Share Posted August 20, 2018 As I said you can simply inject everything with some JS knowledge 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