Created
October 8, 2016 12:15
-
-
Save alexguirre/760bff5e8f922901ec337fe9ea0c58cb to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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