Jump to content

SkittlesAreFalling

Members
  • Content Count

    60
  • Joined

  • Last visited

Community Reputation

0 Neutral

1 Follower

About SkittlesAreFalling

  • Rank
    Snitch

Details

  • Gang
    Chinese Mafia

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Were you high when you made this? Should leave out boats.
  2. Use JSON: SavePlayer = function(player) if getElementType(player) ~= "player" then return false; end local data = {}; data.health = getElementHealth(player); data.armour = getPedArmor(player); data.money = getPlayerMoney(player); data.position = {}; data.position.dimension = getElementDimension(player); data.position.interior = getElementInterior(player); data.position.x, data.position.y, data.position.z = getElementPosition(player); data.position.rz, data.position.ry, data.position.rx = getElementRotation(player);
  3. Thanks. I see how it works, I don't think it's fully developed.
  4. I meant like: var HandleResourceStart = function(resource) { if(resource == getThisResource()) { print("Hello world from JavaScript!"); return; } return; } var HandlePlayerJoin = function() { var player = source; outputChatBox("This server is completely scripted in JavaScript instead of Lua!", player, 0, 128, 128, false); return; } addEventHandler("onResourceStart", getRootElement(), HandleResourceStart); addEventHandler("onPlayerJoin", getRootElement(), HandlePlayerJoin); I'm not sure if it's okay to link a link from the
  5. It is a command that was added by the MTA team, so I don't think you can. https://wiki.multitheftauto.com/wiki/Server_Commands removeCommandHandler("login"); -- Would only work in the resource it was created in, so this won't work. Try: HandleCommand = function(name) if name == "login" then cancelEvent(); end end addEventHandler("onPlayerCommand", getRootElement(), HandleCommand);
  6. https://msdn.microsoft.com/en-us/librar ... ctory.aspx Thank you for the reply. This worked flawlessly with the samp-server.exe, but sadly not with MTA Server.exe. If anyone else has any suggestions? I am open-minded. Might help me find what I missed from the StartInfo variable: https://msdn.microsoft.com/en-us/librar ... o(v=vs.110).aspx UnityEngine.Debug.Log("Starting MTA Server.exe..."); /// Navigate to MTA Server.exe this.mtaServer = new Process(); this.mtaServer.StartInfo.FileName = @"C:\Program Files (x86)\Rockstar Games\MTA San Andreas 1.5\server\MTA Server.exe"; this.mtaServ
  7. I have been attempting to do this ALL DAY, and I think I FINALLY know why it is not working, well it is but I know why it's not working as intended. When I tried executing samp-server.exe (San Andreas Multiplayer, pls forgive me I needed something else to test) it told me "Unable to exec file 'server.cfg'" and that's when it hit me, what if I moved server.cfg to the bin of the executable trying to control samp-server.exe, so I did, and this is the result of doing that [18:50:52] I couldn't load any gamemode scripts. Please verify your server.cfg [18:50:52] It needs a gamemode0 line at the
  8. Thank you for replying, but that did not work. Is there a list of command line arguments that MTA uses I can view? Alright it worked as you said on the MTA Server.exe when I set the short-cut target to "PATH" -t. I must be doing something wrong C# wise because my program can't get it to redirect the output. /// Navigate to MTA Server.exe this.mtaServer = new Process(); this.mtaServer.StartInfo.FileName = "C:\\Program Files (x86)\\Rockstar Games\\MTA San Andreas 1.5\\server\\MTA Server.exe"; this.mtaServer.StartInfo.Arguments = "-t"; /// Set up to run in the background. this.mtaSer
  9. I was making a C# server manager but am not able to redirect output from the console. if(this.mtaServer != null && this.mtaServer.HasExited == false) { this.mtaServer.Kill(); this.mtaServer = null; } /// Navigate to MTA Server.exe this.mtaServer = new Process(); this.mtaServer.StartInfo.FileName = "C:\\Program Files (x86)\\Rockstar Games\\MTA San Andreas 1.5\\server\\MTA Server.exe"; /// Set up to run in the background. this.mtaServer.StartInfo.UseShellExecute = false; /// this.mtaServer.StartInfo.RedirectStandardOutput = true; /// this.mtaServer.StartInfo.Redir
  10. Yes Noki, the favicon like on the web browser's tab. Shows the icon and title of the webpage. https://en.wikipedia.org/wiki/Favicon
  11. Just an idiot ranting on about nothing, move along. (<-- This is an insult, enjoy it )
  12. I'm running it on Windows 10, 8.1 = 80 - 100 fps, 10 = 100 fps (even when recording with the new xbox recording [windows + g] feature), glad I switched.
  13. After a page is done loading, get the Icon texture.
×
×
  • Create New...