GtaSampApi 2.0.0
dotnet add package GtaSampApi --version 2.0.0
NuGet\Install-Package GtaSampApi -Version 2.0.0
<PackageReference Include="GtaSampApi" Version="2.0.0" />
paket add GtaSampApi --version 2.0.0
#r "nuget: GtaSampApi, 2.0.0"
// Install GtaSampApi as a Cake Addin #addin nuget:?package=GtaSampApi&version=2.0.0 // Install GtaSampApi as a Cake Tool #tool nuget:?package=GtaSampApi&version=2.0.0
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();
}
}
}
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net461 is compatible. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
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.
- 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