{"hash":"0x97628584","ns":"CFX","name":"GET_RESOURCE_COMMANDS","slug":"GET_RESOURCE_COMMANDS","official":true,"named":true,"luaName":"GetResourceCommands","game":"cfx","apiset":"shared","returnType":"object","params":[{"name":"resource","type":"char*"}],"returnsDescription":"An object containing registered commands.","summary":"Returns all commands registered by the specified resource.","descriptions":[{"source":"cfx","format":"md","body":"Returns all commands registered by the specified resource.\nThe data returned adheres to the following layout:\n\n```\n[\n{\n\"name\": \"cmdlist\",\n\"resource\": \"example_resource\",\n\"arity\" = -1,\n},\n{\n\"name\": \"command1\"\n\"resource\": \"example_resource2\",\n\"arity\" = -1,\n}\n]\n```"}],"examples":[],"aliases":[],"enums":[],"related":[],"sources":["cfx"],"doc":2,"url":"https://natives.borderlinerp.com/natives/CFX/GET_RESOURCE_COMMANDS","markdownUrl":"https://natives.borderlinerp.com/natives/CFX/GET_RESOURCE_COMMANDS.md","snippets":{"lua":"local retval = GetResourceCommands(resource)","luaInvoke":"local retval = Citizen.InvokeNative(0x97628584, resource, Citizen.ResultAsObject2(msgpack.unpack))","js":"const retval = GetResourceCommands(resource);","jsInvoke":"const retval = Citizen.invokeNative('0x97628584', resource, Citizen.returnResultAnyway(), Citizen.resultAsObject2());","csharp":"Function.Call((Hash)0x97628584, resource);","notes":[]}}