Skip to content

Commit 222ae6d

Browse files
authored
Update Ped.cs
1 parent d296980 commit 222ae6d

File tree

1 file changed

+5
-0
lines changed
  • source/scripting_v3/RDR2/Entities/Peds

1 file changed

+5
-0
lines changed

source/scripting_v3/RDR2/Entities/Peds/Ped.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,11 @@ public override int MaxHealth
108108

109109
public bool IsPlayer => Function.Call<bool>(Hash.IS_PED_A_PLAYER, Handle);
110110

111+
public void SetPedPromptName(string name)
112+
{
113+
Function.Call(Hash._SET_PED_PROMPT_NAME, Handle, Function.Call<string>(Hash._CREATE_VAR_STRING, 10, "LITERAL_STRING", name));
114+
}
115+
111116
public bool GetConfigFlag(int flagID)
112117
{
113118
return Function.Call<bool>(Hash.GET_PED_CONFIG_FLAG, Handle, flagID, true);

0 commit comments

Comments
 (0)