{"hash":"0x957D7E750216D74B","ns":"AICOVERPOINT","name":"_GET_PED_COVER_POINT_TRANSITION_STATE","slug":"_GET_PED_COVER_POINT_TRANSITION_STATE","official":false,"named":true,"luaName":"GetPedCoverPointTransitionState","game":"rdr3","apiset":"client","returnType":"int","params":[{"name":"ped","type":"Ped"}],"summary":"returns the active transition state of a cover point for about 2 seconds unless its peeking 1 - transition from pointing a gun to not pointing a gun 2 - transition to pointing a gun 3 - broke the window 4 - when opening a door while in c…","descriptions":[{"source":"vorp","format":"text","body":"returns the active transition state of a cover point for about 2 seconds unless its peeking\n 1 - transition from pointing a gun to not pointing a gun\n2 - transition to pointing a gun\n3 - broke the window \n4 - when opening a door while in cover (a prompt will show and once pressed state is changed to 4)\n5 - cover transition like from one corner of a house to the other corner\n6 - changing cover to cover like crossing from one side of the door to the other\n7 - when the ped is facing foward with the camera, might be to detect when going from left to right\n8 - when the ped is peeking through a door window etc (this will return 8 while is in peek)\n9 - when a ped is aiming in crouch and enters cover (it doesnt always trigger)\n10 - enters cover\n12 - leaves cover\n16 - changed to crouch or to standing up position"}],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1207","sources":["alloc8or","vorp"],"doc":2,"url":"https://natives.borderlinerp.com/natives/AICOVERPOINT/_GET_PED_COVER_POINT_TRANSITION_STATE","markdownUrl":"https://natives.borderlinerp.com/natives/AICOVERPOINT/_GET_PED_COVER_POINT_TRANSITION_STATE.md","snippets":{"lua":"local retval = GetPedCoverPointTransitionState(ped)","luaInvoke":"local retval = Citizen.InvokeNative(0x957D7E750216D74B, ped, Citizen.ResultAsInteger())","js":"const retval = GetPedCoverPointTransitionState(ped);","jsInvoke":"const retval = Citizen.invokeNative('0x957D7E750216D74B', ped, Citizen.returnResultAnyway(), Citizen.resultAsInteger());","csharp":"int retval = Function.Call<int>((Hash)0x957D7E750216D74B, ped);","notes":["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."]}}