@@ -285,8 +285,70 @@ const fivemCfxResponse: SchemaObject & Partial<ReferenceObject> = {
285285 }
286286}
287287
288+ const fivemInfoResponse : SchemaObject & Partial < ReferenceObject > = {
289+ type : 'object' ,
290+ properties : {
291+ address : { type : 'string' , description : "Server's address" } ,
292+ online : { type : 'boolean' , description : "Server's status. If the bool is true, the server is online" } ,
293+ cacheTime : { type : 'number' , description : "UNIX timestamp when the response was cached" } ,
294+ cacheExpire : { type : 'number' , description : "UNIX timestamp when the response will be remove from cache. Around 5 minutes." } ,
295+ enhancedHostSupport : { type : 'boolean' , description : "Enhanced host support" , nullable : true } ,
296+ icon : { type : 'string' , description : "Server's icon in base64 format" , nullable : true } ,
297+ resources : {
298+ type : 'array' ,
299+ description : "List of resources used by the server" ,
300+ nullable : true ,
301+ items : { type : 'string' }
302+ } ,
303+ server : { type : 'string' , nullable : true , description : "Server's software" } ,
304+ version : { type : 'number' , nullable : true , description : "Server's version" } ,
305+ vars : {
306+ type : 'object' ,
307+ description : "Server's variables" ,
308+ nullable : true ,
309+ properties : {
310+ sv_disableClientReplays : { type : 'boolean' , nullable : true } ,
311+ sv_enforceGameBuild : { type : 'number' , nullable : true } ,
312+ sv_enhancedHostSupport : { type : 'boolean' , nullable : true } ,
313+ sv_lan : { type : 'boolean' , nullable : true } ,
314+ sv_licenseKeyToken : { type : 'string' , nullable : true } ,
315+ sv_maxClients : { type : 'number' , nullable : true } ,
316+ sv_poolSizesIncrease : { type : 'string' , nullable : true } ,
317+ sv_projectDesc : { type : 'string' , nullable : true } ,
318+ sv_projectName : { type : 'string' , nullable : true } ,
319+ sv_pureLevel : { type : 'number' , nullable : true } ,
320+ sv_replaceExeToSwitchBuilds : { type : 'boolean' , nullable : true } ,
321+ sv_scriptHookAllowed : { type : 'boolean' , nullable : true } ,
322+ }
323+ }
324+ } ,
325+ example : {
326+ enhancedHostSupport : true ,
327+ icon : "data:image/png;base64,..." ,
328+ requestSteamTicket : "off" ,
329+ resources : [ "hardcap" , "_cfx_internal" , "mapmanager" ] ,
330+ server : "FXServer-master SERVER v1.0.0.6228 win32" ,
331+ version : 123 ,
332+ vars : {
333+ sv_disableClientReplays : true ,
334+ sv_enforceGameBuild : 2802 ,
335+ sv_enhancedHostSupport : true ,
336+ sv_lan : false ,
337+ sv_licenseKeyToken : "abcdef123456" ,
338+ sv_maxClients : 32 ,
339+ sv_poolSizesIncrease : "2048" ,
340+ sv_projectDesc : "My FiveM server" ,
341+ sv_projectName : "My FiveM server description" ,
342+ sv_pureLevel : 1 ,
343+ sv_replaceExeToSwitchBuilds : false ,
344+ sv_scriptHookAllowed : false
345+ }
346+ }
347+ } ;
348+
288349export {
289350 fivemResponse ,
351+ fivemInfoResponse ,
290352 fivemPlayersResponse ,
291353 fivemCfxResponse
292354} ;
0 commit comments