GtaSampApi 2.0.0

An interface to GTA:SA and SA:MP (including 0.3.DL) via memory injections, written entirely in C#

Install-Package GtaSampApi -Version 2.0.0
dotnet add package GtaSampApi --version 2.0.0
<PackageReference Include="GtaSampApi" Version="2.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add GtaSampApi --version 2.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

SAMP-API

A C# written API to GTA:SA and SA:MP (works on all recent versions including 0.3.DL) using memory injections

A lot of credit is owed to this project: https://github.com/SAMP-UDF/SAMP-UDF-for-AutoHotKey/
In fact, this library is mostly a translation of their AHK script to C#

Example

using System;

namespace SampApiSample
{
    class Program
    {
        static void Main(string[] args)
        {
            SampApi.SampApi.AddMessageToChat("{FFFFFF}SAMP {FF0000}API {00FF00}sample");

            SampApi.SampApi.AddMessageToChat(
                $"You are in {SampApi.SampApi.GetPlayerCurrentZone()} with facing angle {SampApi.SampApi.GetPlayerFacingAngle():F1}");

            Console.ReadLine();
        }
    }
}

SAMP-API

A C# written API to GTA:SA and SA:MP (works on all recent versions including 0.3.DL) using memory injections

A lot of credit is owed to this project: https://github.com/SAMP-UDF/SAMP-UDF-for-AutoHotKey/
In fact, this library is mostly a translation of their AHK script to C#

Example

using System;

namespace SampApiSample
{
    class Program
    {
        static void Main(string[] args)
        {
            SampApi.SampApi.AddMessageToChat("{FFFFFF}SAMP {FF0000}API {00FF00}sample");

            SampApi.SampApi.AddMessageToChat(
                $"You are in {SampApi.SampApi.GetPlayerCurrentZone()} with facing angle {SampApi.SampApi.GetPlayerFacingAngle():F1}");

            Console.ReadLine();
        }
    }
}

Release Notes

- Fixed critical issue with AddMessageToChat https://github.com/kfirprods/SAMP-API/issues/1
       - Renamed namespace from SampApi to GtaSampApi to match the name fo the package

Dependencies

This package has no dependencies.

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
2.0.0 191 2/25/2019
1.0.0 126 2/24/2019