Jump to content

HELP:Loading in-game


garrytheskater

Recommended Posts

Posted

Hey! I see a lot of servers that allows you to download things in-game. But in my server: there's a black screen, nothing to do while waiting. I searched its resource many times, but i could never find it. Please help me, thanks... :|

Posted
Hey! I see a lot of servers that allows you to download things in-game. But in my server: there's a black screen, nothing to do while waiting. I searched its resource many times, but i could never find it. Please help me, thanks... :|

I think servers which have ability to download in-game is free-roam servers try to write on console , start play ..

Posted

Check your mtaserver.conf to make sure is set to 1, and that has a valid port set (default should be 22005). If you're using an external server to host the resources, be sure to put the url in . If you are not, then I suggest leaving this blank.

If this doesn't help, check that your computer's firewall settings aren't blocking needed ports (usually 22003, 22005, and/or 22010). Your ISP might block game server data, as well (unlikely, but sometimes it happens). You can also check your router configuration, as some have built-in firewalls.

I don't really know much about MTA itself so don't think I'm able to accurately answer everything, but I do my best with what I know. I hope this helps.

Posted

you can use camera

like from wiki example

setCameraMatrix

function setCameraOnPlayerJoin() 
     -- slowly fade the camera in to make the screen visible 
     fadeCamera(source, true, 5) 
     -- set the player's camera to a fixed position, looking at a fixed point 
     setCameraMatrix(source, 1468.8785400391, -919.25317382813, 100.153465271, 1468.388671875, -918.42474365234, 99.881813049316) 
end 
addEventHandler("onPlayerJoin", getRootElement(), setCameraOnPlayerJoin) 

or/and you can use server sided text functions as this example here:

https://forum.multitheftauto.com/viewtopic.php?f=91&t=57111&p=550949p550949

  • Moderators
Posted
Hey! I see a lot of servers that allows you to download things in-game. But in my server: there's a black screen, nothing to do while waiting. I searched its resource many times, but i could never find it. Please help me, thanks... :|

So what do you want to do ? Display something on screen while downloading ? or delay the download ?

Posted
Hey! I see a lot of servers that allows you to download things in-game. But in my server: there's a black screen, nothing to do while waiting. I searched its resource many times, but i could never find it. Please help me, thanks... :|

So what do you want to do ? Display something on screen while downloading ? or delay the download ?

In the other freeroam server's, you can walk around with a random skin and wait for the downloading in-game.

I just need that

Posted

If you start play gamemode, you will be able to do that or

function spawnJoin () 
    spawnPlayer (source, 0, 0, 5, 0, math.random (0,288), 0, 0) -- you may need to change that 
    fadeCamera (source, true) 
    setCameraTarget (source, source) 
end 
addEventHandler("onPlayerJoin", getRootElement(), spawnJoin) 

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