Jump to content

ResourceWebAccess


drifterCZ

Recommended Posts

hello, i am triing to show a page in browser via MTA server, but it still says "page not found."

[url=http://127.0.0.1:22004/mod/test.html]http://127.0.0.1:22004/mod/test.html[/url]

meta.xml:

<meta>
<info autor = "unknown" type="gamemode" name="nevim"/>
<script src = "main.lua" />
<script src = "client.lua" type="client" />
<script src = "weather.lua" type="client" />
<file src = "images/login.jpg" />
<html src = "test.html" raw="true" />
</meta>

test.html:

<html>
   <body>
       This resource is called...
   </body>
<html>

please say me what is wrong if u could... thanks

Link to comment

Of course it does require you to login. You can make it public by giving everyone access to web resources (also webadmin or resourcebrowser).

Before you start your server open acl.xml and go to acl "Default", than find this line:

<right name="general.http" access="false" />

Change it to "true" and everyone will have access to http resources.

EDIT:

Where is your previous message? Why did you delete it?

Link to comment

'raw' just means it won't be parsed for <* lua script here *> tags. This is generally required for binary files etc, but can be used for any kind of file that doesn't have those tags in - they'll be somewhat faster to load.

You can give access to a single resource from http using the ACL right 'resource.[name].http' I think...

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...