Sibiryak Posted June 1, 2019 Share Posted June 1, 2019 Hi. Has anyone tried to create a virtual client? For example: a spectator from a server. My task is to call the client function from the server when there are no players on it. I could only think of a bot, but for this you need to be constantly connected to the server. How can I create such a virtual client with MTA tools? Link to comment
Investor Posted June 1, 2019 Share Posted June 1, 2019 What kind of client function do you need? Client functions mostly require a client because it doesn't make sense to run them unless there is a game client with rendering. There may exist workarounds on the server side for certain functions (such as isElementOnScreen is possible to calculate on the server given a camera position, rotation, fov, clipping start and clipping end, etc.), while others are impossible without a full client (such as collecting a dxScreenSource screenshot) and nonsensical (e.g. drawing dx, CEGUI etc without a client to look at it). Link to comment
Sibiryak Posted June 2, 2019 Author Share Posted June 2, 2019 On 01/06/2019 at 18:55, Investor said: What kind of client function do you need? I need dxScreenSource function. It is real? Link to comment
salh Posted June 2, 2019 Share Posted June 2, 2019 https://wiki.multitheftauto.com/wiki/DxCreateScreenSource Link to comment
Sibiryak Posted June 3, 2019 Author Share Posted June 3, 2019 18 hours ago, salh said: https://wiki.multitheftauto.com/wiki/DxCreateScreenSource Read the first topic Link to comment
Moderators IIYAMA Posted June 3, 2019 Moderators Share Posted June 3, 2019 Not possible unless you are actually running gta san on your server. Which I am not sure if virtual machines go that far. You are still missing that gpu after all. An extra home pc maybe? Which you can control with the server. 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