Jump to content

MTA SDK, password


ReGo

Recommended Posts

$ip = "ip"; 
$port = port; 
$user = "user"; 
$pass = "pass"; 
$resname = "your_resource"; 
include("sdk/mta_sdk.php"); 
$mtaServer = new mta($ip,$port,$user,$pass); 
$resource = $mtaServer->getResource($resname); 
$table = $resource->call("your_function"); 
  

  
function your_function() 
    -- Whatever 
end 
  

  
    <export function="your_resource" type="server" http="true"/> 
  

This?

Edit: To set a password, rewrite variables in your PHP SDK file @ lines 18-19

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...