Skip to content

Aziks0/csgo-gsi-payload

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

csgo-gsi-payload

Data structures for CSGO Game State Integration payload.

Docs

Documentation is available here.

Exemple

Using axum:

use std::net::SocketAddr;

use axum::{extract::Json, routing::post, Router};

async fn root(Json(payload): Json<csgo_gsi_payload::Payload>) {
    let steam_id_provider = match payload.provider {
        Some(provider) => provider.steam_id,
        None => String::from("unknown"),
    };
    
    println!("SteamID of the provider: {}", steam_id_provider);
}

#[tokio::main]
async fn main() {
    let app = Router::new().route("/", post(root));
    let address = SocketAddr::from(([127, 0, 0, 1], 3000));
    
    axum::Server::bind(&address)
        .serve(app.into_make_service())
        .await
        .unwrap();
}

Builder

Check out csgo-gsi-builder if you want to build game state integration cfg files.

Notes

It has not been tested in Danger Zone, nor Hostage Rescue modes.

About

Data structures for CSGO Game State Integration payload

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages