{"hash":"0xAC22AA6DF4D1C1DE","ns":"PLAYER","name":"_ADD_PLAYER_AS_FOLLOW_TARGET","slug":"_ADD_PLAYER_AS_FOLLOW_TARGET","official":false,"named":true,"luaName":"AddPlayerAsFollowTarget","game":"rdr3","apiset":"client","returnType":"void","params":[{"name":"player","type":"Player"},{"name":"ped","type":"Ped"},{"name":"p2","type":"float"},{"name":"p3","type":"float"},{"name":"followMode","type":"int"},{"name":"followPriority","type":"int"},{"name":"p6","type":"BOOL"}],"summary":"Used in script function: NET_AUTO_FOLLOW_UPDATE_LEADER_VALUES HORSEFOLLOWMODE_SIDE_ONLY, HORSEFOLLOWMODE_BEHIND_ONLY, HORSEFOLLOWMODE_BEHIND_AND_SIDE, HORSEFOLLOWMODE_BEHIND_CLOSE HORSEFOLLOWPRIORITY_AMBIENT, HORSEFOLLOWPRIORITY_NORMAL,…","descriptions":[{"source":"alloc8or","format":"text","body":"Used in script function: NET_AUTO_FOLLOW_UPDATE_LEADER_VALUES\nfollowMode:\nHORSEFOLLOWMODE_AUTO = 0,\nHORSEFOLLOWMODE_SIDE_ONLY,\nHORSEFOLLOWMODE_BEHIND_ONLY,\nHORSEFOLLOWMODE_BEHIND_AND_SIDE,\nHORSEFOLLOWMODE_BEHIND_CLOSE\nfollowPriority:\nHORSEFOLLOWPRIORITY_STEER_ASSIST = 0,\nHORSEFOLLOWPRIORITY_AMBIENT,\nHORSEFOLLOWPRIORITY_NORMAL,\nHORSEFOLLOWPRIORITY_HIGH"}],"examples":[],"aliases":[],"enums":[],"related":["0x0C6B89876262A99D"],"build":"1207","sources":["alloc8or"],"doc":2,"url":"https://natives.borderlinerp.com/natives/PLAYER/_ADD_PLAYER_AS_FOLLOW_TARGET","markdownUrl":"https://natives.borderlinerp.com/natives/PLAYER/_ADD_PLAYER_AS_FOLLOW_TARGET.md","snippets":{"lua":"AddPlayerAsFollowTarget(player, ped, p2, p3, followMode, followPriority, p6)","luaInvoke":"Citizen.InvokeNative(0xAC22AA6DF4D1C1DE, player, ped, p2, p3, followMode, followPriority, p6)","js":"AddPlayerAsFollowTarget(player, ped, p2, p3, followMode, followPriority, p6);","jsInvoke":"Citizen.invokeNative('0xAC22AA6DF4D1C1DE', player, ped, p2 + 0.0000001, p3 + 0.0000001, followMode, followPriority, p6);","csharp":"Function.Call((Hash)0xAC22AA6DF4D1C1DE, player, ped, p2, p3, followMode, followPriority, p6);","notes":["Float parameters: Lua integers (`10`, or whole numbers decoded from NUI/JSON) are sent as ints and read as garbage. Write `10.0` or `value + 0.0`. The generated JS wrappers add `0.0000001` to non-zero floats for the same reason.","The name is a community guess and may change. If the named call is missing in your client build, use `InvokeNative` with the hash — it always works."]}}