{"hash":"0xD240123E","ns":"CFX","name":"GET_SELECTED_PED_WEAPON","slug":"GET_SELECTED_PED_WEAPON","official":true,"named":true,"luaName":"GetSelectedPedWeapon","game":"cfx","apiset":"server","returnType":"Hash","params":[{"name":"ped","type":"Ped","description":"The target ped."}],"returnsDescription":"The weapon hash.","summary":"An alias of GET_CURRENT_PED_WEAPON.","descriptions":[{"source":"cfx","format":"md","body":"An alias of [GET_CURRENT_PED_WEAPON](#\\_0xB0237302).\n\nNote, the client-side [GET_SELECTED_PED_WEAPON](#\\_0x0A6DB4965674D243) native returns the weapon selected via the HUD (weapon wheel). This data is not available to FXServer."}],"examples":[],"aliases":[],"enums":[],"related":[],"sources":["cfx"],"doc":2,"url":"https://natives.borderlinerp.com/natives/CFX/GET_SELECTED_PED_WEAPON","markdownUrl":"https://natives.borderlinerp.com/natives/CFX/GET_SELECTED_PED_WEAPON.md","snippets":{"lua":"local retval = GetSelectedPedWeapon(ped)","luaInvoke":"local retval = Citizen.InvokeNative(0xd240123e, ped, Citizen.ResultAsInteger())","js":"const retval = GetSelectedPedWeapon(ped);","jsInvoke":"const retval = Citizen.invokeNative('0xd240123e', ped, Citizen.returnResultAnyway(), Citizen.resultAsInteger());","csharp":"int retval = Function.Call<int>((Hash)0xd240123e, ped);","notes":[]}}