A framework for writing game modes for SA-MP in C#. SA-MP is a free Massively Multiplayer Online game mod for the PC version of Rockstar Games Grand Theft Auto: San Andreas.
C# C++ C PowerShell Shell Lua
Clone or download



Plugin Framework
Travis AppVeyor

GitHub release GitHub issues


SampSharp (S# for short) is a plugin and library that allows you to write San Andreas: Multiplayer(SA-MP) gamemodes in C# or any other .NET language. S#'s aim is to allow you to enjoy all features of OO-programming and .NET. S# uses the Mono Framework to allow linux servers to run this plugin as well. For information about installing and building S#, check the documentation. If you have any questions, join our Gitter chat, file an issue or post on our SA-MP forum post.

All feedback is welcome, file an Issue or contact me on the SA-MP forums:

My SA-MP profile

S# topic on SA-MP


S# hosts it's own NuGet Package Repository. SampSharp.GameMode and all useful S# libraries are available from this repository. Instructions on adding the repository to Visual Studio are available here. Feel free to contribute your useful S# libraries to this repository!


The SampSharp.GameMode library provided by the NuGet repository contains all available documentation. You can also view the documentation on the web via http://sampsharp.timpotze.nl/


Some example gamemodes are available here:


Some useful S# libraries: