GtaSampApi 1.0.0

.NET Framework 4.6.1
There is a newer version of this package available.
See the version list below for details.
dotnet add package GtaSampApi --version 1.0.0
NuGet\Install-Package GtaSampApi -Version 1.0.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="GtaSampApi" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add GtaSampApi --version 1.0.0
#r "nuget: GtaSampApi, 1.0.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install GtaSampApi as a Cake Addin
#addin nuget:?package=GtaSampApi&version=1.0.0

// Install GtaSampApi as a Cake Tool
#tool nuget:?package=GtaSampApi&version=1.0.0

SAMP-API

A C# written API to GTA:SA and SA:MP (using memory injection) A lot of credit goes to this project: https://github.com/SAMP-UDF/SAMP-UDF-for-AutoHotKey/ This library is mostly a translation of their AHK script to a C# library

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();
        }
    }
}

Product Versions
.NET Framework net461 net462 net463 net47 net471 net472 net48 net481
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2.0.0 717 2/25/2019
1.0.0 489 2/24/2019

Initial release