Skip to content

Instantly share code, notes, and snippets.

@alexguirre
Created October 8, 2016 12:15
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alexguirre/760bff5e8f922901ec337fe9ea0c58cb to your computer and use it in GitHub Desktop.
Save alexguirre/760bff5e8f922901ec337fe9ea0c58cb to your computer and use it in GitHub Desktop.
using Rage;
using Rage.Native;
internal class PedHeadshot
{
private uint handle;
public uint Handle { get { return handle; } }
private Ped ped;
public Ped Ped { get { return ped; } }
public bool IsValid
{
get { return NativeFunction.Natives.IsPedheadshotValid<bool>(handle); }
}
public bool IsReady
{
get { return NativeFunction.Natives.IsPedheadshotReady<bool>(handle); }
}
public string Txd
{
get { return NativeFunction.Natives.GetPedheadshotTxdString<string>(handle); }
}
public PedHeadshot(Ped ped)
{
this.ped = ped;
}
public void Register()
{
handle = NativeFunction.Natives.RegisterPedheadshot<uint>(ped);
}
public void Unregister()
{
NativeFunction.Natives.UnregisterPedheadshot<uint>(handle);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment